Boost logo

Boost :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2007-03-14 09:07:06


 
Oliver.Kowalke_at_[hidden] wrote:

> How to handle future< int > && future< std::string > &&
> future< my_class
> >?
> Should promise contain a tuple (fusion container?) for the
> result types?

The composed future of future<T1> || future<T2> returns a variant<T1, T2>,
and a composed future of future<T1> && future<T2> returns a tuple<T1, T2>.

Regards Hartmut


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