summaryrefslogtreecommitdiff
path: root/src/flag_set.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-21 06:05:58 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-21 06:10:20 +0200
commit117c211cf7ca94914eef75aa1c1912cd5d6de2ec (patch)
tree9edc1207f670558276d73cab67c70371272ea4ca /src/flag_set.hpp
parent43d7c01d6d76706a55e852055f09f0301408ce5d (diff)
Fix bug in flag_set '==' operator
Diffstat (limited to 'src/flag_set.hpp')
-rw-r--r--src/flag_set.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/flag_set.hpp b/src/flag_set.hpp
index 490f0daf..737513d5 100644
--- a/src/flag_set.hpp
+++ b/src/flag_set.hpp
@@ -99,7 +99,14 @@ public:
constexpr bool operator == (flag_set const &other) const
{
- return m_data == other.m_data;
+ for (std::size_t i = 0; i < tiers; i++)
+ {
+ if (m_data[i] != other.m_data[i])
+ {
+ return false;
+ }
+ }
+ return true;
}
constexpr bool operator != (flag_set const &other) const