mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 19:42:45 +01:00
One more enhance
This commit is contained in:
parent
7cea5b9508
commit
8a03b9f46e
@ -234,7 +234,7 @@ public:
|
||||
constexpr Flags(std::underlying_type_t<T> hex) : m_hex(hex) {}
|
||||
|
||||
FlagBit<T> operator[](T bit) { return FlagBit(m_hex, bit); }
|
||||
bool operator[](T bit) const
|
||||
constexpr bool operator[](T bit) const
|
||||
{
|
||||
return (m_hex & static_cast<std::underlying_type_t<T>>(bit)) != 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user