Fix error C2668 on msvc (#3378)

This commit is contained in:
June Liu authored and GitHub committed 2023-04-11 06:27:28 -07:00
1 parent c98e5a08a4
commit 33f7150778
4 files changed
+6 -6

No files matched your search

+1 -1
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