Fix fmt::localtime formatting not working in wide-char string contexts

This commit is contained in:
Yuval Gamzon-Kapeller 2021-02-07 10:19:17 +02:00
parent 58aa04573f
commit 9a2282aa5c

View File

@ -413,7 +413,8 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock>, Char>
};
template <typename Char> struct formatter<std::tm, Char> {
FMT_CONSTEXPR auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) {
template <typename ParseContext>
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
auto it = ctx.begin();
if (it != ctx.end() && *it == ':') ++it;
auto end = it;