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 0ad5f46 commit 9cf7b6cCopy full SHA for 9cf7b6c
src/flags19.lib/flags19/FlagsOf.h
@@ -40,7 +40,8 @@ template<HasMetaEnum Enum> struct FlagsOf {
40
explicit constexpr FlagsOf(Value const& value) : m_value{value} {}
41
42
template<class... Args> requires((sizeof...(Args) > 0) && ... && std::is_same_v<Args, Enum>)
43
- explicit constexpr FlagsOf(Args... args) : FlagsOf{((1U << static_cast<UnderlyingBit>(args)) | ...)} {}
+ explicit constexpr FlagsOf(Args... args)
44
+ : FlagsOf{static_cast<Value>(((1U << static_cast<UnderlyingBit>(args)) | ...))} {}
45
46
auto operator==(FlagsOf const&) const -> bool = default;
47
0 commit comments