Skip to content

Commit

Permalink
Count sign as part of the character count : part 2
Browse files Browse the repository at this point in the history
* Fix up some damage caused by previous commit.
  • Loading branch information
HowardHinnant committed Dec 19, 2023
1 parent ab37c36 commit 5d22595
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/date/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -7520,7 +7520,12 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
{
auto c = static_cast<char>(Traits::to_char_type(ic));
if (c == '-')
{
neg = true;
(void)is.get();
}
else if (c == '+')
(void)is.get();
}
if (modified == CharT{})
{
Expand Down

0 comments on commit 5d22595

Please sign in to comment.