Boost logo

Boost :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-03-14 09:19:47


On Wednesday 14 March 2007 07:43 am, Braddock Gaskill wrote:
> On Wed, 14 Mar 2007 06:49:57 +0100, Oliver.Kowalke wrote:
> > In your implementation I'm missing operators for logical combination
> > of futures like it is supported by the futures implementation of
> > Thorsten Schütt (vault files).
>
> Hi Oliver,
> Yes, I would like to either add this, or merge into Schutt's
> implementation if he is interested. And example of an unintrusive
> operator||() is below.

I have to say I really am not a big fan of needless overloading of the
languages operators like logical || and &&. Especially when you are
overloading them with functions that really don't correspond to the
original operators. What if I want to overload || with a function that
actually does correspond to logical or, like

Future<bool> operator||(const Future<T> &a, const Future<U> &b);

-- 
Frank



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