diff --git a/include/fmt/format.h b/include/fmt/format.h index 536af047..6dca13fa 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4088,22 +4088,10 @@ struct formatter::value>> } }; -template -struct formatter : formatter { - template - auto format(void* val, FormatContext& ctx) const -> decltype(ctx.out()) { - return formatter::format(val, ctx); - } -}; +FMT_FORMAT_AS(void*, const void*); template -struct formatter : formatter, Char> { - template - FMT_CONSTEXPR auto format(const Char* val, FormatContext& ctx) const - -> decltype(ctx.out()) { - return formatter, Char>::format(val, ctx); - } -}; +struct formatter : formatter, Char> {}; /** \rst