diff --git a/include/kabufuda/Util.hpp b/include/kabufuda/Util.hpp index 3490550..552500d 100644 --- a/include/kabufuda/Util.hpp +++ b/include/kabufuda/Util.hpp @@ -57,7 +57,7 @@ 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)); \ }