Boost logo

Boost :

Subject: Re: [boost] Common future base class (was Re: Boost.Fibermini-review September 4-13)
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2015-09-06 14:07:10


> > template <typename Future...>
> > requires(is_future<Future>)...
> > future<tuple<Future...>> when_all(Future &&... f)
> > {
> > (await f)...;
> > return make_tuple(std::forward<Future>(f)...);
> > }
>
> I've always found when_any much more interesting than when_all. Is it as
> trivial to implement with await as when_all?

Nod, I agree. However, I have not found a clever way to do that yet.

Regards Hartmut
---------------
http://boost-spirit.com
http://stellar.cct.lsu.edu


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk