Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-11-29 12:40:45


Jaakko Jarvi <jarvi_at_[hidden]> writes:

> The specification of tuples was changed in the committee from the
> original proposal along the way.
> In particular, comparison operators were changed and the
> implementation in Fusion reflects the old
> specs. According to the old implementation, each operator only relied
> on the same elementwise operator.
> E.g. != was defined in terms of != between the elements, >= only used
> >= between the elements etc.
> So I think == and < should stay as they are now, but
> the definition of !=, <=, >= and > should be changed to be defined in
> terms of == and < for tuples.

Shouldn't that be std::less instead of < ?
I'm thinking of tuples of pointers, naturally.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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