From 9a2282aa5c74d49f48c46244e42d75811943ead3 Mon Sep 17 00:00:00 2001 From: Yuval Gamzon-Kapeller Date: Sun, 7 Feb 2021 10:19:17 +0200 Subject: [PATCH] Fix fmt::localtime formatting not working in wide-char string contexts --- include/fmt/chrono.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 4b9aeeb1..1b71131d 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -413,7 +413,8 @@ struct formatter, Char> }; template struct formatter { - FMT_CONSTEXPR auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) { + template + FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) { auto it = ctx.begin(); if (it != ctx.end() && *it == ':') ++it; auto end = it;