Skip to content

Commit

Permalink
Workaround an ADL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 11, 2022
1 parent c06e0b4 commit 3999fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/format-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
};
Expand Down

0 comments on commit 3999fd1

Please sign in to comment.