Boost logo

Boost :

From: Braddock Gaskill (braddock_at_[hidden])
Date: 2007-03-16 06:26:21


On Fri, 16 Mar 2007 06:03:14 -0400, Braddock Gaskill wrote:
> On Wed, 14 Mar 2007 22:48:31 +0200, Peter Dimov wrote:
>> As for operator&&, it doesn't deliver any extra functionality. Instead of
>> wating for f1 && f2, you just wait for f1, then f2:
>>
>> future<int> f1 = fork( f, x );
>> future<int> f2 = fork( f, y );
>>
>> std::cout << f1 + f2 << std::endl;
>
> I gotta say I'm hard-pressed to think of a real-life situation where this is
> not a sufficient replacement for operator&&.

Actually, I retract that. Once you have an ||, then you need an && if you want
to do:

f = f1 || (f2 && f3); //assuming no implicit block-and-convert syntax
f.wait();


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