Fix error C2668 on msvc (#3378)

This commit is contained in:
June Liu
2023-04-11 21:27:28 +08:00
committed by GitHub
parent c98e5a08a4
commit 33f7150778
4 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ template <> struct formatter<custom_type> {
template <typename FormatContext>
auto format(const custom_type& p, FormatContext& ctx) -> decltype(ctx.out()) {
return format_to(ctx.out(), "cust={}", p.i);
return fmt::format_to(ctx.out(), "cust={}", p.i);
}
};
FMT_END_NAMESPACE