diff --git a/include/fmt/base.h b/include/fmt/base.h index 38f9b523..e739f4b7 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2257,7 +2257,7 @@ template class value { custom.value = const_cast(&x); #endif } - custom.format = format_custom>; + custom.format = format_custom; } template ())> @@ -2268,11 +2268,10 @@ template class value { } // Formats an argument of a custom type, such as a user-defined class. - // DEPRECATED! Formatter template parameter will be removed. - template + template static void format_custom(void* arg, parse_context& parse_ctx, Context& ctx) { - auto f = Formatter(); + auto f = formatter(); parse_ctx.advance_to(f.parse(parse_ctx)); using qualified_type = conditional_t(), const T, T>;