diff --git a/include/podio/ObjectID.h b/include/podio/ObjectID.h index c096bc613..3c847404e 100644 --- a/include/podio/ObjectID.h +++ b/include/podio/ObjectID.h @@ -25,6 +25,9 @@ class ObjectID { bool operator==(const ObjectID& other) const { return index == other.index && collectionID == other.collectionID; } + bool operator!=(const ObjectID& other) const { + return !(*this == other); + } }; inline std::ostream& operator<<(std::ostream& os, const podio::ObjectID& id) {