summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flag_set.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/flag_set.hpp b/src/flag_set.hpp
index cbc4e7aa..2e5d46ea 100644
--- a/src/flag_set.hpp
+++ b/src/flag_set.hpp
@@ -119,6 +119,16 @@ public:
return f;
}
+ constexpr flag_set operator ~ () const
+ {
+ flag_set f;
+ for (std::size_t i = 0; i < tiers; i++)
+ {
+ f.m_data[i] = ~m_data[i];
+ }
+ return f;
+ }
+
};
// Implementation details, because preprocessor.