Correct use of constexpr

This commit is contained in:
Jack Andersen 2016-07-31 18:34:54 -10:00
parent d242e2deb6
commit d0791ebd21
1 changed files with 3 additions and 3 deletions

View File

@ -46,19 +46,19 @@ constexpr type operator&(type a, type b)\
using T = std::underlying_type_t<type>;\
return type(static_cast<T>(a) & static_cast<T>(b));\
}\
constexpr type& operator|=(type& a, const type& b)\
inline type& operator|=(type& a, const type& b)\
{\
using T = std::underlying_type_t<type>;\
a = type(static_cast<T>(a) | static_cast<T>(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<type>;\
a = type(static_cast<T>(a) & static_cast<T>(b));\
return a;\
}\
constexpr type operator~(const type& key)\
inline type operator~(const type& key)\
{\
using T = std::underlying_type_t<type>;\
return type(~static_cast<T>(key));\