From 8a03b9f46e3ad9ee9d025dde1ae2bb0aedfa4bc7 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 9 Aug 2022 16:22:33 -0700 Subject: [PATCH] One more enhance --- Source/Core/Common/BitUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }