From ea94d6d93c9f8f40b86d7a2b12cd03dc28b33aa9 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Fri, 14 May 2021 10:49:41 +0200 Subject: [PATCH] Prevent ambiguity in name lookup Unqualified calls to 'make_format_args' may find the same name by ADL in if this C++20 header happens to be directly or indirectly included in a translation unit. Do a qualified lookup instead. --- include/fmt/compile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 65d26a56..3160588b 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -319,7 +319,7 @@ template struct spec_field { constexpr FMT_INLINE OutputIt format(OutputIt out, const Args&... args) const { const auto& vargs = - make_format_args>(args...); + fmt::make_format_args>(args...); basic_format_context ctx(out, vargs); return fmt.format(get_arg_checked(args...), ctx); }