Boost logo

Boost :

Subject: Re: [boost] Executor associated to the future continuations (was [thread] boost::future::then)
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-10-30 08:42:48

On 30-Oct-15 10:08 AM, Vladimir Prus wrote:

> I've tried to do so, at:
> This initial version was straight-forward, though it will probably need further tweaks for production use.
> What does boost::future::then do right now if the continuation returns boost::future, is it unwrapped
> automatically?

BTW, I've noticed that if I call boost::future::get() twice in my continuation, on the same future object,
the second call throws, saying:

        Operation not permitted on an object without an associated state

you can find the example at:

Am I missing something? Looking at both std::future and boost::future documentation, I see no indication
that calling get clears the state.


Vladimir Prus

Boost list run by bdawes at, gregod at, cpdaniel at, john at