mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-09 08:35:28 +01:00
Workaround an ADL issue
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user