summaryrefslogtreecommitdiff
path: root/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'util.hpp')
-rw-r--r--util.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.hpp b/util.hpp
index 925ace9..6f35e03 100644
--- a/util.hpp
+++ b/util.hpp
@@ -42,7 +42,7 @@ typename std::enable_if<Bitwise<T>::enable, T>::type operator&=(T &a, T b) {
template<typename T>
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>