summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-06-13 22:21:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-06-13 22:24:21 +0200
commit1c8f175159520518f05da9b287c783b692bd453f (patch)
treee52f6f4b29bbaecc76a5aeeea2430a36b68015c7
parent55ff3fddd8bee56fdec18612c7afd4863ac024e0 (diff)
fix very annoying gcc warning
-rw-r--r--src/entity.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entity.hpp b/src/entity.hpp
index 29777c13..94e6cb62 100644
--- a/src/entity.hpp
+++ b/src/entity.hpp
@@ -30,6 +30,7 @@ struct entity_proto
entity_proto(const entity_proto&);
virtual bool operator==(const entity_proto&) const;
+ bool operator!=(const entity_proto& o) const { return !operator==(o); }
virtual ~entity_proto() noexcept;
entity_type type_of() const noexcept;