Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-03-06 02:59:17


Author: anthonyw
Date: 2008-03-06 02:59:16 EST (Thu, 06 Mar 2008)
New Revision: 43528
URL: http://svn.boost.org/trac/boost/changeset/43528

Log:
made the callable_no_args function object a named object rather than a temporary, in order to avoid gratuitous breakage on some compilers
Text files modified:
   trunk/libs/thread/test/test_thread_launching.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/thread/test/test_thread_launching.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_launching.cpp (original)
+++ trunk/libs/thread/test/test_thread_launching.cpp 2008-03-06 02:59:16 EST (Thu, 06 Mar 2008)
@@ -37,7 +37,8 @@
 
 void test_thread_callable_object_no_arguments()
 {
- boost::thread callable((callable_no_args()));
+ callable_no_args func;
+ boost::thread callable(func);
     callable.join();
     BOOST_CHECK(callable_no_args::called);
 }


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