mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-26 12:35:32 +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()) {
|
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();
|
return ctx.out();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user