boost::tuple definiert keinen operator==?
-
Warum definiert boost::tuple keinen operator== und wie kann man das beheben?
-
(!(a < b) && !( b < a))
-
Das hier ist vielleicht interessant zu lesen: http://www.boost.org/doc/libs/1_35_0/libs/tuple/doc/tuple_users_guide.html#relational_operators
-
ffdgfdgf schrieb:
Warum definiert boost::tuple keinen operator== [...]?
Warum können gewöhnliche Personenkraftwagen fliegen?
Wenn ich in der Doku nachschaue, finde ich den Satz:
Tuples reduce the operators ==, !=, <, >, <= and >= to the corresponding elementary operators. This means, that if any of these operators is defined between all elements of two tuples, then the same operator is defined between the tuples as well.
-
Fehler gefunden: Man muss boost/tuple/tuple_comparison.hpp includieren.