We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b64e714 commit 8e8d477Copy full SHA for 8e8d477
substrate/flags
@@ -77,6 +77,7 @@ namespace substrate
77
}
78
79
[[nodiscard]] constexpr auto toRaw() const noexcept { return value; }
80
+ constexpr void fromRaw(const storage_t &flags) { value = flags; }
81
82
constexpr bool operator ==(const bitFlags_t &flags) const noexcept { return value == flags.value; }
83
constexpr bool operator ==(const enum_t flag) const noexcept { return value == flagAsBit(flag); }
0 commit comments