Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77729 - trunk/libs/thread/test/sync/futures/future
From: vicente.botet_at_[hidden]
Date: 2012-04-02 18:49:12


Author: viboes
Date: 2012-04-02 18:49:11 EDT (Mon, 02 Apr 2012)
New Revision: 77729
URL: http://svn.boost.org/trac/boost/changeset/77729

Log:
Thread: Check if adding BOOST_EXPLICIT_MOVE helps on Sun
Text files modified:
   trunk/libs/thread/test/sync/futures/future/dtor_pass.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/thread/test/sync/futures/future/dtor_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/future/dtor_pass.cpp (original)
+++ trunk/libs/thread/test/sync/futures/future/dtor_pass.cpp 2012-04-02 18:49:11 EDT (Mon, 02 Apr 2012)
@@ -37,7 +37,7 @@
       {
           boost::promise<T> p(boost::allocator_arg, test_allocator<T>());
           BOOST_TEST(test_alloc_base::count == 1);
- f = p.get_future();
+ f = BOOST_EXPLICIT_MOVE(p.get_future());
           BOOST_TEST(test_alloc_base::count == 1);
           BOOST_TEST(f.valid());
       }
@@ -51,7 +51,7 @@
       {
           boost::promise<T> p(boost::allocator_arg, test_allocator<int>());
           BOOST_TEST(test_alloc_base::count == 1);
- f = p.get_future();
+ f = BOOST_EXPLICIT_MOVE(p.get_future());
           BOOST_TEST(test_alloc_base::count == 1);
           BOOST_TEST(f.valid());
       }
@@ -65,7 +65,7 @@
       {
           boost::promise<T> p(boost::allocator_arg, test_allocator<T>());
           BOOST_TEST(test_alloc_base::count == 1);
- f = p.get_future();
+ f = BOOST_EXPLICIT_MOVE(p.get_future());
           BOOST_TEST(test_alloc_base::count == 1);
           BOOST_TEST(f.valid());
       }


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