Boost logo

Boost :

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

Braddock Gaskill wrote:

> Minor bug in the code I just posted, I left out
> b.add_callback(fa) in here.
> Are there any thoughts on how && and || operators should
> properly handle exceptions?

These operators should create a new (composite)future, exposing the same
interface as the (simple) futures you're composing. This composite future
should handle the exceptions in a similar way as the embedded ones, i.e.
propagate the exceptions catched in the embedded futures to the caller, as

Also, does your implementation of operator|| allow for constructs like f1 ||
f2 || f3 ?

Regards Hartmut

Boost list run by bdawes at, gregod at, cpdaniel at, john at