Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53893 - sandbox/task/boost/task
From: oliver.kowalke_at_[hidden]
Date: 2009-06-14 03:45:28


Author: olli
Date: 2009-06-14 03:45:27 EDT (Sun, 14 Jun 2009)
New Revision: 53893
URL: http://svn.boost.org/trac/boost/changeset/53893

Log:
fixes for freebsd
Text files modified:
   sandbox/task/boost/task/task.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: sandbox/task/boost/task/task.hpp
==============================================================================
--- sandbox/task/boost/task/task.hpp (original)
+++ sandbox/task/boost/task/task.hpp 2009-06-14 03:45:27 EDT (Sun, 14 Jun 2009)
@@ -47,7 +47,7 @@
         struct impl
         {
                 promise< R > prom;
- shared_future< R > fut;
+ unique_future< R > fut;
 
                 impl()
                 :
@@ -130,8 +130,8 @@
         const id get_id() const
         { return id( lexical_cast< std::string >( impl_.get() ) ); }
 
- shared_future< R > & get_future()
- { return impl_->fut; }
+ shared_future< R > get_future()
+ { return shared_future< R >( impl_->fut); }
 
         void swap( task< R > & other) // throw()
         { impl_.swap( other.impl_); }
@@ -152,7 +152,7 @@
         struct impl
         {
                 promise< void > prom;
- shared_future< void > fut;
+ unique_future< void > fut;
 
                 impl()
                 :
@@ -238,8 +238,8 @@
         const id get_id() const
         { return id( lexical_cast< std::string >( impl_.get() ) ); }
 
- shared_future< void > & get_future()
- { return impl_->fut; }
+ shared_future< void > get_future()
+ { return shared_future< void >( impl_->fut); }
 
         void swap( task< void > & other) // throw()
         { impl_.swap( other.impl_); }


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