Kaydet (Commit) 973d0381 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Revert "improve fallback behaviour of underlying_type for old gcc"

This reverts commit 7ad4e562, which
was causing ICEs on precisely the compiler versions it was targetted
at.

Change-Id: I996792d723a8bd0d7edd5f248d74217322b5ce3f
üst 4048311a
...@@ -19,11 +19,7 @@ namespace o3tl { ...@@ -19,11 +19,7 @@ namespace o3tl {
template<typename T> struct underlying_type { template<typename T> struct underlying_type {
#if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ <= 6 && \ #if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ <= 6 && \
!defined __clang__ !defined __clang__
typedef typename std::conditional< typedef int type;
T( -1 ) < T( 0 ),
typename std::make_signed< T >::type,
typename std::make_unsigned< T >::type
>::type type;
#else #else
typedef typename std::underlying_type<T>::type type; typedef typename std::underlying_type<T>::type type;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment