Boost logo

Boost :

From: Trey Jackson (tjackson_at_[hidden])
Date: 2004-09-01 11:32:54


Right, the documentation for the tuples http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#relational_operators
says that the operators ==, !=, <, >, etc. are deduced from the
elementary operators.

So, since my tuple contains just 'int', I would expect tuple to create
an operator<() for me.

Is this not correct?

TJ

>Things that go into sets must be less-than-able. The operators less
>than are in
>in tuple_comparison.hpp. Add that and your example works....

-- 
Trey Jackson
tjackson_at_[hidden]
"Annex Canada now! We need the room, and who's going to stop us?"
-- Tom Neff

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