Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80832 - in trunk/libs/thread/test/threads: container thread/constr
From: vicente.botet_at_[hidden]
Date: 2012-10-03 16:14:15


Author: viboes
Date: 2012-10-03 16:14:15 EDT (Wed, 03 Oct 2012)
New Revision: 80832
URL: http://svn.boost.org/trac/boost/changeset/80832

Log:
Thread: Protect the static assert to catch bug with gcc-4.4
Text files modified:
   trunk/libs/thread/test/threads/container/thread_vector_pass.cpp | 2 ++
   trunk/libs/thread/test/threads/thread/constr/Frvalue_pass.cpp | 2 ++
   2 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/libs/thread/test/threads/container/thread_vector_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/container/thread_vector_pass.cpp (original)
+++ trunk/libs/thread/test/threads/container/thread_vector_pass.cpp 2012-10-03 16:14:15 EDT (Wed, 03 Oct 2012)
@@ -42,7 +42,9 @@
   std::cout << "count = " << ++count << std::endl;
 }
 
+#if defined BOOST_NO_CXX11_RVALUE_REFERENCES && defined BOOST_THREAD_USES_MOVE
 BOOST_STATIC_ASSERT(::boost::is_function<boost::rv<boost::rv<boost::thread> >&>::value==false);
+#endif
 
 int main()
 {

Modified: trunk/libs/thread/test/threads/thread/constr/Frvalue_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/constr/Frvalue_pass.cpp (original)
+++ trunk/libs/thread/test/threads/thread/constr/Frvalue_pass.cpp 2012-10-03 16:14:15 EDT (Wed, 03 Oct 2012)
@@ -45,7 +45,9 @@
   return BOOST_THREAD_MAKE_RV_REF(MoveOnly());
 }
 
+#if defined BOOST_NO_CXX11_RVALUE_REFERENCES && defined BOOST_THREAD_USES_MOVE
 BOOST_STATIC_ASSERT(::boost::is_function<boost::rv<boost::rv<MoveOnly> >&>::value==false);
+#endif
 
 int main()
 {


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