Re: [Boost-bugs] [Boost C++ Libraries] #10340: No boost::promise<T>::set_value(const T&) overload present in C++03 mode

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-11 11:43:29


#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 anonymous):

 Simpler test case:

 {{{
 #include <boost/thread/future.hpp>

 struct foo {
   foo(int i_) { }
 };

 int main() {

   boost::promise<foo> p;
   const foo f(42);
   p.set_value(f);
 }
 }}}

 This fails with -DBOOST_THREAD_USES_MOVE but compiles OK without.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10340#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:16 UTC