[Tuple] Problem with operator== and tuples

I'm trying to compare two tuple instances of the same type (indirectly
by doing an == on std::set's of them), but this doesn't compile for
me. The Tuple doc seems to indicate comparisons are supported. What am
I missing? Thanks, --DD
struct RowidTupleComparator {
bool operator()(
const boost::tuple

On Mar 25, 2009, at 5:36 PM, Dominique Devienne wrote:
I'm trying to compare two tuple instances of the same type (indirectly by doing an == on std::set's of them), but this doesn't compile for me. The Tuple doc seems to indicate comparisons are supported. What am I missing? Thanks, --DD
You probably neglected to include: #include "boost/tuple/tuple_comparison.hpp"

On Wed, Mar 25, 2009 at 7:57 PM, Michael Olea
On Mar 25, 2009, at 5:36 PM, Dominique Devienne wrote: I'm trying to compare two tuple instances of the same type
You probably neglected to include: #include "boost/tuple/tuple_comparison.hpp"
Indeed. I then don't need the custom std::set comparator anymore either. Thank you Michael. --DD
participants (2)
-
Dominique Devienne
-
Michael Olea