From cb0b5c746df23dc832b08d785c5332efe2601ee4 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Fri, 16 Apr 2021 18:16:48 +0200 Subject: [PATCH] Use qualified name lookup rather than ADL. Name lookup within exported templates cannot find non-exported entities by ADL when instantiation takes place outside the module. --- include/fmt/format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index ee01391c98cd..e55ca8be3bf4 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3459,7 +3459,7 @@ struct formatter::value; detail::specs_checker handler(handler_type(specs_, ctx), type); - auto it = parse_format_specs(begin, end, handler); + auto it = detail::parse_format_specs(begin, end, handler); auto eh = ctx.error_handler(); switch (type) { case detail::type::none_type: @@ -3477,7 +3477,7 @@ struct formatter(specs_.type, eh)); break; case detail::type::float_type: @@ -3603,7 +3603,7 @@ template class dynamic_formatter { format_str_ = ctx.begin(); // Checks are deferred to formatting time when the argument type is known. detail::dynamic_specs_handler handler(specs_, ctx); - return parse_format_specs(ctx.begin(), ctx.end(), handler); + return detail::parse_format_specs(ctx.begin(), ctx.end(), handler); } template