diff --git a/test/itestvalue.hpp b/test/itestvalue.hpp index b45bdd8..4fd6750 100644 --- a/test/itestvalue.hpp +++ b/test/itestvalue.hpp @@ -380,6 +380,9 @@ struct testvalue bool operator==(const testvalue &other) const { return value_ == other.value_; } + bool operator!=(const testvalue &other) const + { return value_ != other.value_; } + friend bool operator< (int other1, const testvalue &other2) { return other1 < other2.value_; } @@ -391,6 +394,12 @@ struct testvalue friend bool operator== (const testvalue &other1, int other2) { return other1.value_ == other2; } + + friend bool operator!= (int other1, const testvalue &other2) + { return other1 != other2.value_; } + + friend bool operator!= (const testvalue &other1, int other2) + { return other1.value_ != other2; } }; template