tomaszkam / date

A date and time library based on the C++11/14/17 <chrono> header
Other
0 stars 0 forks source link

[LWG3271] Parsing funciton saves save and restore format state #4

Closed tomaszkam closed 5 years ago

tomaszkam commented 5 years ago

Orginal comment:

to_stream/from_stream sets os to the default fill, flags and width on entry and restores the original fill, flags and with on exit.

tomaszkam commented 5 years ago

The format part no longer applies after migration to std::format.

HowardHinnant commented 5 years ago

Proposed wording:

27.12 Parsing [time.parse]/p10:

All from_stream overloads behave as unformatted input functions, except that they have an unspecified effect on the value returned by subsequent calls to basic_istream<>::gcount(). Any changes to made to is.fill(), is.width() or is.flags() are undone prior to an ordinary or exceptional return. Each overload takes a ...

HowardHinnant commented 5 years ago

Mailed to LWG chair.