diff --git a/Source/Core/Common/BitUtils.h b/Source/Core/Common/BitUtils.h index 134ba1fb07..fefc37b730 100644 --- a/Source/Core/Common/BitUtils.h +++ b/Source/Core/Common/BitUtils.h @@ -234,7 +234,7 @@ public: constexpr Flags(std::underlying_type_t hex) : m_hex(hex) {} FlagBit operator[](T bit) { return FlagBit(m_hex, bit); } - bool operator[](T bit) const + constexpr bool operator[](T bit) const { return (m_hex & static_cast>(bit)) != 0; }