Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10340: No boost::promise<T>::set_value(const T&) overload present in C++03 mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-30 11:46:20
#10340: No boost::promise<T>::set_value(const T&) overload present in C++03 mode
-------------------------------+----------------------
Reporter: rob.desbois@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------
Comment (by viboes):
Please, could you tell me if the following patch works for you
{{{
git diff ../include/boost/thread/future.hpp
diff --git a/include/boost/thread/future.hpp
b/include/boost/thread/future.hpp
index 184d305..c7e81d5 100644
--- a/include/boost/thread/future.hpp
+++ b/include/boost/thread/future.hpp
@@ -553,7 +553,7 @@ namespace boost
//typedef typename
conditional<boost::is_fundamental<T>::value,T,BOOST_THREAD_RV_REF(T)>::type
move_dest_type;
typedef T move_dest_type;
#elif defined BOOST_THREAD_USES_MOVE
- typedef typename
conditional<boost::is_fundamental<T>::value,T,T&>::type
source_reference_type;
+ typedef typename
conditional<boost::is_fundamental<T>::value,T,T const&>::type
source_reference_type;
//typedef typename
conditional<boost::is_fundamental<T>::value,T,BOOST_THREAD_RV_REF(T)>::type
rvalue_source_type;
//typedef typename
conditional<boost::enable_move_utility_emulation<T>::value,BOOST_THREAD_RV_REF(T),T>::type
move_dest_type;
typedef BOOST_THREAD_RV_REF(T) rvalue_source_type;
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10340#comment:8> 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:16 UTC