On 30-Oct-15 10:08 AM, Vladimir Prus wrote:
I've tried to do so, at:
https://gist.github.com/vprus/7bb55cc6c6a1d4bbd3c4
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: https://gist.github.com/vprus/d53ef0860608b856aa60 Am I missing something? Looking at both std::future and boost::future documentation, I see no indication that calling get clears the state. Thanks, Volodya -- Vladimir Prus http://vladimirprus.com