mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
One more enhance
This commit is contained in:
parent
7cea5b9508
commit
8a03b9f46e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue