|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83370 - trunk/boost/thread
From: vicente.botet_at_[hidden]
Date: 2013-03-09 11:00:23
Author: viboes
Date: 2013-03-09 11:00:22 EST (Sat, 09 Mar 2013)
New Revision: 83370
URL: http://svn.boost.org/trac/boost/changeset/83370
Log:
Thread: Try workaround for #8212.
Text files modified:
trunk/boost/thread/future.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/thread/future.hpp
==============================================================================
--- trunk/boost/thread/future.hpp (original)
+++ trunk/boost/thread/future.hpp 2013-03-09 11:00:22 EST (Sat, 09 Mar 2013)
@@ -3234,7 +3234,7 @@
typedef typename decay<T>::type future_type;
promise<future_type> p;
p.set_value(boost::forward<T>(value));
- return p.get_future();
+ return BOOST_THREAD_MAKE_RV_REF(p.get_future());
}
@@ -3254,14 +3254,14 @@
typedef typename decay<T>::type future_type;
promise<future_type> p;
p.set_value(boost::forward<T>(value));
- return p.get_future().share();
+ return BOOST_THREAD_MAKE_RV_REF(p.get_future().share());
}
inline shared_future<void> make_shared_future()
{
promise<void> p;
- return p.get_future().share();
+ return BOOST_THREAD_MAKE_RV_REF(p.get_future().share());
}
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