Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[time.format] use basic_ostringstream<charT> instead of ostringstream #5932

Merged
merged 1 commit into from Nov 8, 2022

Conversation

jwakely
Copy link
Member

@jwakely jwakely commented Nov 4, 2022

This seems editorial, because if charT is not char then os_str() cannot be written to the output without widening it, so the current spec isn't implementable. The intention is to use a stringstream to build up the result then write it out, but there's no reason to do that as a narrow string then widen it, so clearly it should be a stringstream of the correct character type. This was confirmed by @vitaut on the LWG reflector, and matches what all implementations do.

The hyphenation hint is needed to fix an overfull hbox.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 7, 2022

I take it that it's an official LWG position that this change is editorial?

@jwakely
Copy link
Member Author

jwakely commented Nov 8, 2022

I raised it on the reflector, the author of the wording confirmed that my suggested change is correct, nobody objected. I can get the group in Kona to take a poll if you like.

@jwakely
Copy link
Member Author

jwakely commented Nov 8, 2022

LWG in Kona just agreed this is editorial.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 8, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants