You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that [defns.iostream.templates] is not referenced elsewhere in the standard. And perhaps it's wrong to exclude basic_stringbuf and basic_syncbuf (and their friends).
See [defns.character.container]. In C++98 and C++03 that said "It is used for one of the template parameters of the
string and iostream class templates." In C++11 it was changed to a note talking about "the string, iostream, and regular expression class templates".
So it's still used, but as "the string [class templates], iostream [class templates], and regular expression class templates". I don't think anybody will actually make the connection between that note and the definition though.
I think it would be OK to remove it, but maybe we should improve the note in [defns.character.container] to be more clear about what "string, iostream, and regular expression class templates" refers to. Maybe change it to:
It is used for the template parameters of std::char_traits and the class templates that use that, such as the string, iostream, and regular expression class templates.
Activity
jwakely commentedon Apr 21, 2023
See [defns.character.container]. In C++98 and C++03 that said "It is used for one of the template parameters of the
string and iostream class templates." In C++11 it was changed to a note talking about "the string, iostream, and regular expression class templates".
So it's still used, but as "the string [class templates], iostream [class templates], and regular expression class templates". I don't think anybody will actually make the connection between that note and the definition though.
I think it would be OK to remove it, but maybe we should improve the note in [defns.character.container] to be more clear about what "string, iostream, and regular expression class templates" refers to. Maybe change it to:
tkoeppe commentedon Oct 10, 2023
@jwakely Can you send a PR with that change?
[defns.character.container] Improve note
jwakely commentedon Nov 8, 2023
as-you-wish.gif
tkoeppe commentedon Nov 9, 2023
The unhelpful section is no more.