summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/o3tl/underlying_type.hxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/o3tl/underlying_type.hxx b/include/o3tl/underlying_type.hxx
index 534e0883fc7e..4b2e0778ee60 100644
--- a/include/o3tl/underlying_type.hxx
+++ b/include/o3tl/underlying_type.hxx
@@ -19,11 +19,7 @@ namespace o3tl {
template<typename T> struct underlying_type {
#if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ <= 6 && \
!defined __clang__
- typedef typename std::conditional<
- T( -1 ) < T( 0 ),
- typename std::make_signed< T >::type,
- typename std::make_unsigned< T >::type
- >::type type;
+ typedef int type;
#else
typedef typename std::underlying_type<T>::type type;
#endif