Skip to content

Commit

Permalink
fix small issue when compiling with C++20 without std::format (#2688)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachittle committed Mar 24, 2023
1 parent 42d1f40 commit 069a2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ struct fmt::formatter<my_type> : fmt::formatter<std::string>
{
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);
}
};

Expand Down

0 comments on commit 069a2e8

Please sign in to comment.