From 3999fd193a452bb3adc442facbcd3eed3562edd2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 11 Dec 2022 09:23:39 -0800 Subject: [PATCH] Workaround an ADL issue --- test/format-test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/format-test.cc b/test/format-test.cc index b172069e..c1042a32 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1679,7 +1679,8 @@ template <> struct formatter { } 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(); } };