Fix empty spec for time point (#3275)

This commit is contained in:
Shawn Zhong authored and GitHub committed 2023-01-16 11:48:00 -08:00
1 parent 39971eb336
commit dfbb952b2c
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -2180,7 +2180,7 @@ template <typename Char> struct formatter<std::tm, Char> {
FMT_CONSTEXPR auto do_parse(basic_format_parse_context<Char>& ctx)
-> decltype(ctx.begin()) {
auto begin = ctx.begin(), end = ctx.end();
if (begin == end || *begin == '}') return end;
if (begin == end || *begin == '}') return begin;
begin = detail::parse_align(begin, end, specs);
if (begin == end) return end;