|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82597 - branches/release/boost/lockfree
From: tim_at_[hidden]
Date: 2013-01-24 11:11:26
Author: timblechmann
Date: 2013-01-24 11:11:25 EST (Thu, 24 Jan 2013)
New Revision: 82597
URL: http://svn.boost.org/trac/boost/changeset/82597
Log:
lockfree: merge static assertions from trunk
Properties modified:
branches/release/boost/lockfree/ (props changed)
Text files modified:
branches/release/boost/lockfree/queue.hpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Modified: branches/release/boost/lockfree/queue.hpp
==============================================================================
--- branches/release/boost/lockfree/queue.hpp (original)
+++ branches/release/boost/lockfree/queue.hpp 2013-01-24 11:11:25 EST (Thu, 24 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