Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8212: Boost thread compilation error on Solaris 10
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-03 09:03:43
#8212: Boost thread compilation error on Solaris 10
----------------------------------------------------+-----------------------
Reporter: nicolas.jouvray@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords: compilation, Solaris
----------------------------------------------------+-----------------------
Comment (by viboes):
Does the following patch help?
{{{
svn diff ../../../boost/thread
Index: ../../../boost/thread/future.hpp
===================================================================
--- ../../../boost/thread/future.hpp (revision 83254)
+++ ../../../boost/thread/future.hpp (working copy)
@@ -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());
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8212#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC