From d0791ebd2172d2adb85ab5bc32bbbb3a6d40f29f Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 31 Jul 2016 18:34:54 -1000 Subject: [PATCH] Correct use of constexpr --- include/kabufuda/Util.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/kabufuda/Util.hpp b/include/kabufuda/Util.hpp index dfa918a..1c20530 100644 --- a/include/kabufuda/Util.hpp +++ b/include/kabufuda/Util.hpp @@ -46,19 +46,19 @@ constexpr type operator&(type a, type b)\ using T = std::underlying_type_t;\ return type(static_cast(a) & static_cast(b));\ }\ -constexpr type& operator|=(type& a, const type& b)\ +inline type& operator|=(type& a, const type& b)\ {\ using T = std::underlying_type_t;\ a = type(static_cast(a) | static_cast(b));\ return a;\ }\ -constexpr type& operator&=(type& a, const type& b)\ +inline type& operator&=(type& a, const type& b)\ {\ using T = std::underlying_type_t;\ a = type(static_cast(a) & static_cast(b));\ return a;\ }\ -constexpr type operator~(const type& key)\ +inline type operator~(const type& key)\ {\ using T = std::underlying_type_t;\ return type(~static_cast(key));\