
11 Jul
2006
11 Jul
'06
3:51 p.m.
"Philippe Vaucher" <philippe.vaucher@gmail.com> writes:
How do you make a std::set of structs, pairs, or tuples?
Maybe it was already said (didn't read the whole thread), but I thought I'd add my 0.02$.
I think we should not define meaningless operator< for the structs/whatever, and let the user define one if he wants to use those structs in a set.
That would be exceedingly inconvenient. Having a builtin operator< for tuples is a huge win for users. -- Dave Abrahams Boost Consulting www.boost-consulting.com