From 585512fc7cdcda4b5f0ff5559c91c5859bf7f5dd Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 4 Mar 2018 15:14:02 -0800 Subject: [PATCH] Remove unnecessary instantiations --- include/fmt/core.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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;