Re: [PATCH 4/4] libstdc++: Rework formatting of empty chrono-spec for duration.

2025-06-12 Thread Jonathan Wakely
On 06/06/25 12:41 +0200, Tomasz Kamiński wrote: In contrast to other calendar types if empty chron-spec is used for duration "chron" -> "chrono" we are required to format it (and it's representation type) via ostream. "it's" -> "its" Handling this case was now moved to be part of the form

Re: [PATCH 4/4] libstdc++: Rework formatting of empty chrono-spec for duration.

2025-06-11 Thread Tomasz Kaminski
On Fri, Jun 6, 2025 at 12:55 PM Tomasz Kamiński wrote: > In contrast to other calendar types if empty chron-spec is used for > duration > we are required to format it (and it's representation type) via ostream. > Handling this case was now moved to be part of the format function > for duration. T

[PATCH 4/4] libstdc++: Rework formatting of empty chrono-spec for duration.

2025-06-06 Thread Tomasz Kamiński
In contrast to other calendar types if empty chron-spec is used for duration we are required to format it (and it's representation type) via ostream. Handling this case was now moved to be part of the format function for duration. To facilitate that __formatter_chrono::_M_format_to_ostream function