|
Boost : |
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2007-03-16 08:47:44
Oliver.Kowalke_at_[hidden] wrote:
> 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.
Sure, that's the exact behavior of the future's library in the Vault.
> 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.
Agreed. I still think the behavior wrt exceptions should be controllable by
a policy.
Regards Hartmut
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk