diff options
Diffstat (limited to 'src/flags.hh')
| -rw-r--r-- | src/flags.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flags.hh b/src/flags.hh index 824d37ca..d9755efa 100644 --- a/src/flags.hh +++ b/src/flags.hh @@ -37,6 +37,7 @@ struct TestableFlags Flags value; constexpr operator bool() const { return (UnderlyingType<Flags>)value; } constexpr operator Flags() const { return value; } + constexpr operator UnderlyingType<Flags>() const { return (UnderlyingType<Flags>)value; } bool operator==(const TestableFlags<Flags>& other) const { return value == other.value; } bool operator!=(const TestableFlags<Flags>& other) const { return value != other.value; } |
