From f664457371498d91ee3898f9ee09afd05fc1f709 Mon Sep 17 00:00:00 2001 From: Bailey Chittle Date: Fri, 24 Mar 2023 16:36:54 -0400 Subject: [PATCH] fix small issue when compiling with C++20 without std::format --- 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); } };