Re: [Boost-bugs] [Boost C++ Libraries] #12293: boost::future::then lambda called before future is ready.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12293: boost::future::then lambda called before future is ready.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-19 21:40:36


#12293: boost::future::then lambda called before future is ready.
----------------------------------+-------------------------
  Reporter: Jeffrey.Gramowski@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords: future then
----------------------------------+-------------------------

Comment (by viboes):

 I agree that there is a problem. But is is not that the unwrap must be
 done implicitly.

 Boost::future::then was defined before the C++ experimental
 std::experimental::future::then included in the TS and the original
 proposal behaved like Boost.Thread. Changing this will be a breaking
 change and people don't like that.

 The problem is that the future<future<void>> is implicitly convertible to
 future<void>, which must be explicit. I will see what happens if I define
 the constructor explicit.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12293#comment:11>
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:20 UTC