fix small issue when compiling with C++20 without std::format (#2688)

This commit is contained in:
Bailey Chittle
2023-03-24 19:47:37 -04:00
committed by GitHub
parent 42d1f40a18
commit 069a2e8fc9

View File

@@ -279,7 +279,7 @@ struct fmt::formatter<my_type> : fmt::formatter<std::string>
{ {
auto format(my_type my, format_context &ctx) -> decltype(ctx.out()) 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);
} }
}; };