diff --git a/include/athena/Global.hpp b/include/athena/Global.hpp index a4912cb..9401759 100644 --- a/include/athena/Global.hpp +++ b/include/athena/Global.hpp @@ -77,29 +77,29 @@ typedef struct stat64 stat64_t; #ifndef ENABLE_BITWISE_ENUM #define ENABLE_BITWISE_ENUM(type)\ -inline type operator|(type a, type b)\ +constexpr type operator|(type a, type b)\ {\ using T = std::underlying_type_t;\ return type(static_cast(a) | static_cast(b));\ }\ -inline type operator&(type a, type b)\ +constexpr type operator&(type a, type b)\ {\ 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, const 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, const type& b)\ {\ using T = std::underlying_type_t;\ a = type(static_cast(a) & static_cast(b));\ return a;\ }\ -inline type operator~(const type& key)\ +constexpr type operator~(const type& key)\ {\ using T = std::underlying_type_t;\ return type(~static_cast(key));\