tomaszkam / date

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

[NAD] Both respect and minimize tie/flush under from/to_stream #19

Closed tomaszkam closed 5 years ago

tomaszkam commented 5 years ago

Original comment:

Both respect and minimize tie/flush under from/to_stream

HowardHinnant commented 5 years ago

I believe this can be closed.

from_stream is handled here http://eel.is/c++draft/time.parse#10 by calling all from_stream overloads "unformatted input functions".

to_stream no longer exists. I'm not positive how std::format handles this issue. But either it is handled, or it is a format-wide issue, and not something chrono-specific.

tomaszkam commented 5 years ago

std::format produces an character sequence (std::string or the range underlying the provided output iterator), so it does not interoperate with actual streams.

tomaszkam commented 5 years ago

Closing per suggestion.