Les opérateurs de comparaison doivent être const.
const
- bool operator==(const XXX &rOther) { ... } - bool operator!=(const XXX &rOther) { ... } + bool operator==(const XXX &rOther) const { ... } + bool operator!=(const XXX &rOther) const { ... }