
26 Nov
2005
26 Nov
'05
9:21 p.m.
"Sumanth J.V"
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