forked from HowardHinnant/date
Count sign as part of the character count : part 2
* Fix up some damage caused by previous commit.
This commit is contained in:
@@ -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{})
|
||||
{
|
||||
|
Reference in New Issue
Block a user