Skip to content

Commit 60ee98e

Browse files
authored
Fix MSVC warning (error) C4800
1 parent 6df748a commit 60ee98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/flags/flags.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ template <class E> class flags {
9393
{ insert(b, e); }
9494

9595

96-
constexpr explicit operator bool() const noexcept { return val_; }
96+
constexpr explicit operator bool() const noexcept { return val_ != 0; }
9797

9898
constexpr bool operator!() const noexcept { return !val_; }
9999

0 commit comments

Comments
 (0)