Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-11-26 16:21:05


"Sumanth J.V" <sumanth_at_[hidden]> writes:

> Thanx Kevin,
>
> Now my code compiles. However, I would like to change the default
> behavior of the comparison operator.

You can't. That's like wanting to change the comparison behavior for
int. The library provided the tuple type, and it provided comparison
semantics, so that's what you get. If you want something else, you
can make the tuple a member inside a class of your own choice, or you
can supply an explicit comparison function when sorting.

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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net