Boost logo

Boost :

From: Braddock Gaskill (braddock_at_[hidden])
Date: 2007-03-14 08:21:59


On Wed, 14 Mar 2007 07:43:47 -0400, Braddock Gaskill wrote:
> And example of an unintrusive operator||() is below.
> template<typename T>
> future<T> operator||(future<T> &a, future<T> &b) {
> future_or<T> fa(a, b);
> a.add_callback(fa);
> return fa.p_;
> }

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?


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