Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-07-11 11:51:24

"Philippe Vaucher" <philippe.vaucher_at_[hidden]> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at