Skip to content

Commit

Permalink
If %I is used without %p, mark the ambiguity with failbit
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardHinnant committed Apr 16, 2021
1 parent ac6ca2a commit 2ef74cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/date/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -7845,6 +7845,8 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
goto broken;
}
}
else // I is ambiguous, AM or PM?
goto broken;
}
}
if (H != not_a_hour)
Expand Down

0 comments on commit 2ef74cb

Please sign in to comment.