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

Are there any thoughts on how && and || operators should properly handle

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