diff --git a/fmt/printf.h b/fmt/printf.h index f068b959..1c58df2b 100644 --- a/fmt/printf.h +++ b/fmt/printf.h @@ -70,16 +70,6 @@ class IsZeroInt { operator()(T) { return false; } }; -template -struct is_same { - enum { value = 0 }; -}; - -template -struct is_same { - enum { value = 1 }; -}; - template class ArgConverter { private: @@ -102,7 +92,7 @@ class ArgConverter { operator()(U value) { bool is_signed = type_ == 'd' || type_ == 'i'; typedef typename internal::conditional< - is_same::value, U, T>::type TargetType; + std::is_same::value, U, T>::type TargetType; if (sizeof(TargetType) <= sizeof(int)) { // Extra casts are used to silence warnings. if (is_signed) {