Require explicit inequality as well as equality operators on evalvalues

This commit is contained in:
2019-09-07 13:28:25 +02:00
parent d8c67f2dde
commit fab2c9eabd
9 changed files with 38 additions and 3 deletions

View File

@@ -60,6 +60,10 @@ namespace Porygon::UserData {
return b->GetHashCode() == _hash;
}
bool operator!=(const EvalValue *b) const override {
return !operator==(b);
}
[[nodiscard]] EvalValue* Clone() const final{
return new UserDataCollectionValue(_type, _helper, _hash);
}