Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-25 09:55:49


Ben Young <ben.young_at_[hidden]> writes:

> Recently at our company we had a couple of bugs relating to people
> incorrectly writing comparison operators, so I came up with this little
> helper. It is very trivial, but useful none the less as bogus comparison
> operators can be the cause of many bugs.
>
> Obviously it could be improved to take a predictate of some kind and
> checged to use the boost pre-processor library, but, otherwise, is anyone
> interested

Did you ever consider using

    make_tuple(x1, y1, z1) < make_tuple(x2, y2, z2)

?

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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