We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dcbc9b commit 8ffedc6Copy full SHA for 8ffedc6
substrate/flags
@@ -30,7 +30,7 @@ namespace substrate
30
constexpr bitFlags_t(const bitFlags_t &flags) noexcept : value{flags.value} { }
31
// move ctor omitted as it doesn't really make sense for this type
32
template<typename... values_t, typename = std::enable_if_t<(std::is_same_v<values_t, enum_t> && ...)>>
33
- constexpr bitFlags_t(const values_t ...flags) noexcept : value{(flagAsBit(flags) | ...)} { }
+ constexpr bitFlags_t(const values_t ...flags) noexcept : value{storage_t((flagAsBit(flags) | ...))} { }
34
35
constexpr bitFlags_t &operator =(const bitFlags_t &flags) noexcept
36
{
0 commit comments