From 069a2e8fc947f63855d770fdc3c3eb427f19988f Mon Sep 17 00:00:00 2001 From: Bailey Chittle <39804642+bachittle@users.noreply.github.com> Date: Fri, 24 Mar 2023 19:47:37 -0400 Subject: [PATCH] fix small issue when compiling with C++20 without std::format (#2688) --- example/example.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.cpp b/example/example.cpp index 316a22b1..636a1be3 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -279,7 +279,7 @@ struct fmt::formatter : fmt::formatter { auto format(my_type my, format_context &ctx) -> decltype(ctx.out()) { - return format_to(ctx.out(), "[my_type i={}]", my.i); + return fmt::format_to(ctx.out(), "[my_type i={}]", my.i); } };