Boost logo

Boost :

From: Oliver.Kowalke_at_[hidden]
Date: 2007-03-16 05:46:46


> I'm open to this idea - just waiting for the dust to settle
> on exactly how it should work. If you make real-life use of
> these composition operators, you could help with your most
> complex real-life usage example.
> braddock

I suggest that

future< tuple< T1, T2, T3 > > f_and( f1 && f2 && f3);
future< variant< T1, T2, T3 > > f_or( f1 || f2 || f3);

behave like ordinary futures f1, f2, f3.
That means the the current thread is blocked in future< T >::get() not
in the ctor.

What happens in exceptional cases?
I would prefer that I get the ability to check which future (f1, f2, f3)
failed and which exception was thrown.

Oliver


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