diff --git a/include/fmt/core.h b/include/fmt/core.h index 6e658021..f4d4aaf4 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2690,15 +2690,9 @@ struct formatter decltype(ctx.out()); }; -#define FMT_FORMAT_AS(Type, Base) \ - template \ - struct formatter : formatter { \ - template \ - auto format(Type const& val, FormatContext& ctx) const \ - -> decltype(ctx.out()) { \ - return formatter::format(static_cast(val), ctx); \ - } \ - } +#define FMT_FORMAT_AS(Type, Base) \ + template \ + struct formatter : formatter {} FMT_FORMAT_AS(signed char, int); FMT_FORMAT_AS(unsigned char, unsigned);