mirror of https://github.com/AxioDL/boo.git
Minor bitwise enum macro change
This commit is contained in:
parent
058ea23a00
commit
3a8defb5eb
|
@ -42,7 +42,7 @@ static inline ComPtr<T>* ReferenceComPtr(ComPtr<T>& ptr) {
|
||||||
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)); \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue