summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--video.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/video.hpp b/video.hpp
index 1ccc93d..523ded6 100644
--- a/video.hpp
+++ b/video.hpp
@@ -23,6 +23,9 @@ struct Primitive_Id {
bool operator==(Primitive_Id<T> other) const {
return index == other.index;
}
+ bool operator!=(Primitive_Id<T> other) const {
+ return index != other.index;
+ }
operator bool() const {
return index != 0;
}