From 9d5c25978d31c1e15b696cca910d93795cd8ed3d Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 15 Dec 2018 20:30:54 -1000 Subject: [PATCH] Minor bitwise enum macro change --- include/kabufuda/Util.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); \ }