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.
1 parent 6df748a commit 60ee98eCopy full SHA for 60ee98e
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