We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c9ca6e + 60ee98e commit c338bd6Copy full SHA for c338bd6
include/flags/flags.hpp
@@ -93,7 +93,7 @@ template <class E> class flags {
93
{ insert(b, e); }
94
95
96
- constexpr explicit operator bool() const noexcept { return val_; }
+ constexpr explicit operator bool() const noexcept { return val_ != 0; }
97
98
constexpr bool operator!() const noexcept { return !val_; }
99
0 commit comments