From 03b8af71ec796dd2a97768ae9394e3a6a09df0bd Mon Sep 17 00:00:00 2001 From: "Hans-Martin B. Jensen" Date: Fri, 2 Jun 2023 17:25:34 +0200 Subject: [PATCH] Use correct Char type in std::filesystem::path Godbolt repro: https://godbolt.org/z/o4bjG6ddo --- include/fmt/std.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index e01dcd88a6fd..b686d0e16d8a 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -89,9 +89,9 @@ inline void write_escaped_path( FMT_EXPORT template struct formatter - : formatter> { + : formatter, Char> { template FMT_CONSTEXPR auto parse(ParseContext& ctx) { - auto out = formatter>::parse(ctx); + auto out = formatter, Char>::parse(ctx); this->set_debug_format(false); return out; } @@ -100,7 +100,7 @@ struct formatter typename FormatContext::iterator { auto quoted = basic_memory_buffer(); detail::write_escaped_path(quoted, p); - return formatter>::format( + return formatter, Char>::format( basic_string_view(quoted.data(), quoted.size()), ctx); } };