Boost logo

Boost :

From: Darren Cook (darren_at_[hidden])
Date: 2005-08-18 18:23:57

Florian wrote:
> Hmm.. << >> would be look ok for me, because multivalues don´t provide
> arithmetic operations and they can't be misunderstood in this context.
> But at all, I don´t like this misuse of operator overloads, ...

I feel the same; none of the proposals are good, and user-defined
predicates are probably rare enough that the below compare() idea is fine.


> because it
> can lead into complex and confusing compiler error messages. My appraoch
> is still to provide a simple predicate-function like compare( all_off( a
> ), pred(), any_of( b ) ). This has also the advantage, that there are no
> ambigous problems with operator overloads of lambda expressions, which
> occour if you write something like
> all_of( a ) << lambda::_1 > lambda::_2 >> any_of( b ).. Where also
> parentheses don't help.

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