Skip to content

[defns.iostream.templates] This section doesn't seem helpful and may be misleading #6236

Closed
@frederick-vs-ja

Description

@frederick-vs-ja
Contributor

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).

Should we just remove this section?

Activity

jwakely

jwakely commented on Apr 21, 2023

@jwakely
Member

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.

tkoeppe

tkoeppe commented on Oct 10, 2023

@tkoeppe
Contributor

@jwakely Can you send a PR with that change?

jwakely

jwakely commented on Nov 8, 2023

@jwakely
Member

@jwakely Can you send a PR with that change?

as-you-wish.gif

tkoeppe

tkoeppe commented on Nov 9, 2023

@tkoeppe
Contributor

The unhelpful section is no more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jwakely@tkoeppe@frederick-vs-ja

        Issue actions

          [defns.iostream.templates] This section doesn't seem helpful and may be misleading · Issue #6236 · cplusplus/draft