Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11192: boost::future<>::then() with an executor doesn't compile when the callback returns a future
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-17 15:41:59
#11192: boost::future<>::then() with an executor doesn't compile when the callback
returns a future
-------------------------------+-----------------------------------------
Reporter: konrad.zemek@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.58.0 | Severity: Problem
Resolution: | Keywords: future then executor nested
-------------------------------+-----------------------------------------
Comment (by konrad.zemek@â¦):
I believe this commit fixes the issue in a proper manner:
https://github.com/kzemek/thread/commit/60bebc5e8325bf1fcdb3b0ecc586ecccd4200208
It also befriends the nested future specialization with
{{{make_shared_future_async_continuation_shared_state}}} and
{{{make_shared_future_deferred_continuation_shared_state}}}, as I found
that returning a future from {{{shared_future<>::then()}}} also resulted
in similar compilation errors.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11192#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:18 UTC