Workaround an ADL issue

This commit is contained in:
Victor Zverovich 2022-12-11 09:23:39 -08:00
parent c06e0b4ede
commit 3999fd193a

View File

@ -1679,7 +1679,8 @@ template <> struct formatter<date> {
}
auto format(const date& d, format_context& ctx) -> decltype(ctx.out()) {
format_to(ctx.out(), "{}-{}-{}", d.year(), d.month(), d.day());
// Namespace-qualify to avoid ambiguity with std::format_to.
fmt::format_to(ctx.out(), "{}-{}-{}", d.year(), d.month(), d.day());
return ctx.out();
}
};