Minor bitwise enum macro change

This commit is contained in:
Jack Andersen 2018-12-15 20:30:54 -10:00 committed by Phillip Stephens
parent 8ce7a33f65
commit 9d5c25978d

View File

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