mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-14 23:11:05 +00:00
Workaround an ADL issue
This commit is contained in:
parent
c06e0b4ede
commit
3999fd193a
@ -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();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user