diff --git a/include/athena/Global.hpp b/include/athena/Global.hpp index c99865b..627cc77 100644 --- a/include/athena/Global.hpp +++ b/include/athena/Global.hpp @@ -100,7 +100,7 @@ typedef struct stat64 atStat64_t; a = type(static_cast(a) & static_cast(b)); \ return a; \ } \ - inline type operator~(const type& key) { \ + constexpr type operator~(type key) { \ using T = std::underlying_type_t; \ return type(~static_cast(key)); \ }