From 342973b3498e978d322586b3f6a536d7a7287046 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Wed, 28 Apr 2021 11:04:00 +0200 Subject: [PATCH] Make wchar_t overloads usable in module Bring ''detail::find()' into scope. --- include/fmt/format.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 158571a4cc99..bec143aa5a54 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2998,6 +2998,9 @@ FMT_CONSTEXPR const Char* parse_replacement_field(const Char* begin, template FMT_CONSTEXPR_DECL FMT_INLINE void parse_format_string( basic_string_view format_str, Handler&& handler) { + // this is most likely a name-lookup defect in msvc's modules implementation + using detail::find; + auto begin = format_str.data(); auto end = begin + format_str.size(); if (end - begin < 32) {