|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82400 - trunk/boost/lockfree
From: tim_at_[hidden]
Date: 2013-01-08 04:04:26
Author: timblechmann
Date: 2013-01-08 04:04:25 EST (Tue, 08 Jan 2013)
New Revision: 82400
URL: http://svn.boost.org/trac/boost/changeset/82400
Log:
lockfree: queue - add static assertions
Text files modified:
trunk/boost/lockfree/queue.hpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Modified: trunk/boost/lockfree/queue.hpp
==============================================================================
--- trunk/boost/lockfree/queue.hpp (original)
+++ trunk/boost/lockfree/queue.hpp 2013-01-08 04:04:25 EST (Tue, 08 Jan 2013)
@@ -74,6 +74,15 @@
{
private:
#ifndef BOOST_DOXYGEN_INVOKED
+
+#ifdef BOOST_HAS_TRIVIAL_DESTRUCTOR
+ BOOST_STATIC_ASSERT((boost::has_trivial_destructor<T>::value));
+#endif
+
+#ifdef BOOST_HAS_TRIVIAL_ASSIGN
+ BOOST_STATIC_ASSERT((boost::has_trivial_assign<T>::value));
+#endif
+
typedef typename detail::queue_signature::bind<A0, A1, A2>::type bound_args;
static const bool has_capacity = detail::extract_capacity<bound_args>::has_capacity;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk