thanks for nothing microsoft
This commit is contained in:
2
util.hpp
2
util.hpp
@@ -42,7 +42,7 @@ typename std::enable_if<Bitwise<T>::enable, T>::type operator&=(T &a, T b) {
|
|||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
typename std::enable_if<Bitwise<T>::enable, T>::type operator~(T a) {
|
typename std::enable_if<Bitwise<T>::enable, T>::type operator~(T a) {
|
||||||
return static_cast<T>(~static_cast<std::underlying_type<T>::type>(a));
|
return static_cast<T>(~static_cast<typename std::underlying_type<T>::type>(a));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Reference in New Issue
Block a user