Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77751 - trunk/libs/thread/test/sync/futures/future
From: vicente.botet_at_[hidden]
Date: 2012-04-03 16:57:25


Author: viboes
Date: 2012-04-03 16:57:24 EDT (Tue, 03 Apr 2012)
New Revision: 77751
URL: http://svn.boost.org/trac/boost/changeset/77751

Log:
Thread: Try to pass these test on Sun using BOOST_EXPLICIT_MOVE
Text files modified:
   trunk/libs/thread/test/sync/futures/future/move_assign_pass.cpp | 6 +++---
   trunk/libs/thread/test/sync/futures/future/move_ctor_pass.cpp | 6 +++---
   trunk/libs/thread/test/sync/futures/future/share_pass.cpp | 6 +++---
   3 files changed, 9 insertions(+), 9 deletions(-)

Modified: trunk/libs/thread/test/sync/futures/future/move_assign_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/future/move_assign_pass.cpp (original)
+++ trunk/libs/thread/test/sync/futures/future/move_assign_pass.cpp 2012-04-03 16:57:24 EDT (Tue, 03 Apr 2012)
@@ -32,7 +32,7 @@
   {
       typedef int T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::future<T> f;
       f = boost::move(f0);
       BOOST_TEST(!f0.valid());
@@ -49,7 +49,7 @@
   {
       typedef int& T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::future<T> f;
       f = boost::move(f0);
       BOOST_TEST(!f0.valid());
@@ -66,7 +66,7 @@
   {
       typedef void T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::future<T> f;
       f = boost::move(f0);
       BOOST_TEST(!f0.valid());

Modified: trunk/libs/thread/test/sync/futures/future/move_ctor_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/future/move_ctor_pass.cpp (original)
+++ trunk/libs/thread/test/sync/futures/future/move_ctor_pass.cpp 2012-04-03 16:57:24 EDT (Tue, 03 Apr 2012)
@@ -31,7 +31,7 @@
   {
       typedef int T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::future<T> f = boost::move(f0);
       BOOST_TEST(!f0.valid());
       BOOST_TEST(f.valid());
@@ -46,7 +46,7 @@
   {
       typedef int& T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::future<T> f = boost::move(f0);
       BOOST_TEST(!f0.valid());
       BOOST_TEST(f.valid());
@@ -61,7 +61,7 @@
   {
       typedef void T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::future<T> f = boost::move(f0);
       BOOST_TEST(!f0.valid());
       BOOST_TEST(f.valid());

Modified: trunk/libs/thread/test/sync/futures/future/share_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/future/share_pass.cpp (original)
+++ trunk/libs/thread/test/sync/futures/future/share_pass.cpp 2012-04-03 16:57:24 EDT (Tue, 03 Apr 2012)
@@ -29,7 +29,7 @@
   {
       typedef int T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::shared_future<T> sf = f0.share();
       boost::shared_future<T> f = sf;
       BOOST_TEST(!f0.valid());
@@ -46,7 +46,7 @@
   {
       typedef int& T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::shared_future<T> sf = f0.share();
       boost::shared_future<T> f = sf;
       BOOST_TEST(!f0.valid());
@@ -63,7 +63,7 @@
   {
       typedef void T;
       boost::promise<T> p;
- boost::future<T> f0 = p.get_future();
+ boost::future<T> f0 = BOOST_EXPLICIT_MOVE(p.get_future());
       boost::shared_future<T> sf = f0.share();
       boost::shared_future<T> f = sf;
       BOOST_TEST(!f0.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