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

Add note to state that basic_string<charT, ...>::traits_type::char_type == charT #198

Closed
sdutoit opened this issue Sep 25, 2013 · 0 comments
Assignees

Comments

@sdutoit
Copy link
Contributor

sdutoit commented Sep 25, 2013

Daniel Krügler writes:

it seems that the following requirement expressed in the last
sentence
of 21.2 Character traits [char.traits] p3

"To specialize those templates to generate a string or iostream class
to handle a particular character container type CharT, that and its
related character traits class Traits are passed as a pair of
parameters to the string or iostream template as formal parameters
charT and traits. Traits::char_type shall be the same as CharT."

is hard to find in the standard, because a natural place for this was
sub-clause [string.require]. Would you consider to add a note of the
following content after 21.4.1 basic_string general requirements
[string.require] p3

"[Note: In every specialization basic_string<charT, traits,
Allocator>, the type traits_type::char_type shall be the same type as
charT. -- end note]"

as an editorial action?

jensmaurer added a commit to jensmaurer/draft that referenced this issue Nov 13, 2016
@jensmaurer jensmaurer self-assigned this Nov 13, 2016
tkoeppe pushed a commit that referenced this issue Nov 13, 2016
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

No branches or pull requests

2 participants