diff --git a/include/boo/System.hpp b/include/boo/System.hpp index 822d738..509bec2 100644 --- a/include/boo/System.hpp +++ b/include/boo/System.hpp @@ -37,12 +37,12 @@ static inline ComPtr* ReferenceComPtr(ComPtr& ptr) { using T = std::underlying_type_t; \ return type(static_cast(a) & static_cast(b)); \ } \ - inline type& operator|=(type& a, const type& b) { \ + constexpr type& operator|=(type& a, type b) { \ using T = std::underlying_type_t; \ a = type(static_cast(a) | static_cast(b)); \ return a; \ } \ - inline type& operator&=(type& a, const type& b) { \ + constexpr type& operator&=(type& a, type b) { \ using T = std::underlying_type_t; \ a = type(static_cast(a) & static_cast(b)); \ return a; \