Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84810 - trunk/boost/thread
From: vicente.botet_at_[hidden]
Date: 2013-06-16 17:29:52


Author: viboes
Date: 2013-06-16 17:29:52 EDT (Sun, 16 Jun 2013)
New Revision: 84810
URL: http://svn.boost.org/trac/boost/changeset/84810

Log:
Thread: Added future unwrapp constructor.

Text files modified:
   trunk/boost/thread/future.hpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/boost/thread/future.hpp
==============================================================================
--- trunk/boost/thread/future.hpp Sun Jun 16 17:27:59 2013 (r84809)
+++ trunk/boost/thread/future.hpp 2013-06-16 17:29:52 EDT (Sun, 16 Jun 2013) (r84810)
@@ -1480,6 +1480,7 @@
         base_type(boost::move(static_cast<base_type&>(BOOST_THREAD_RV(other))))
         {
         }
+ inline BOOST_THREAD_FUTURE(BOOST_THREAD_RV_REF(BOOST_THREAD_FUTURE<BOOST_THREAD_FUTURE<R> >) other);
 
         BOOST_THREAD_FUTURE& operator=(BOOST_THREAD_RV_REF(BOOST_THREAD_FUTURE) other) BOOST_NOEXCEPT
         {
@@ -4164,6 +4165,13 @@
       return BOOST_THREAD_FUTURE<Rp>(h);
     }
   }
+
+ template <typename R>
+ inline BOOST_THREAD_FUTURE<R>::BOOST_THREAD_FUTURE(BOOST_THREAD_RV_REF(BOOST_THREAD_FUTURE<BOOST_THREAD_FUTURE<R> >) other):
+ base_type(other.unwrap())
+ {
+ }
+
   template <typename R2>
   BOOST_THREAD_FUTURE<R2>
   BOOST_THREAD_FUTURE<BOOST_THREAD_FUTURE<R2> >::unwrap()


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