mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +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) {}
|
constexpr Flags(std::underlying_type_t<T> hex) : m_hex(hex) {}
|
||||||
|
|
||||||
FlagBit<T> operator[](T bit) { return FlagBit(m_hex, bit); }
|
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;
|
return (m_hex & static_cast<std::underlying_type_t<T>>(bit)) != 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue