diff --git a/include/fmt/core.h b/include/fmt/core.h index 8953e513..96ec79d1 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -451,19 +451,10 @@ FMT_CONSTEXPR bool is_arithmetic(type t) { template struct convert_to_int { enum { - value = !std::is_arithmetic::value && std::is_convertible::value + value = !std::is_arithmetic::value && std::is_convertible::value }; }; -#define FMT_DISABLE_CONVERSION_TO_INT(Type) \ - template \ - struct convert_to_int { enum { value = 0 }; } - -// Silence warnings about convering float to int. -FMT_DISABLE_CONVERSION_TO_INT(float); -FMT_DISABLE_CONVERSION_TO_INT(double); -FMT_DISABLE_CONVERSION_TO_INT(long double); - template struct string_value { const Char *value;