From 8e4676e4a53cdae7bea8192ccc906ae64cb0464c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 24 Aug 2025 09:52:17 -0700 Subject: [PATCH] Remove deprecated template parameter --- include/fmt/base.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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>;