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-08 23:41:46
#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):
Replying to [comment:3 viboes]:
> Hi, The following shouldn't compile
>
>
> {{{
> auto waitFuture = future1.then([&tmpValue,
&promise2](boost::future<void> future){
> assert(future.is_ready()); // this works correctly and is
ready.
> }}}
>
>
> Do you mean something else instead of future.is_ready?
Forget this I didn't saw the future parameter.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12293#comment:5> 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