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

[range.istream] Start CharT and Traits with lowercase #6032

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hewillk
Copy link
Contributor

@hewillk hewillk commented Dec 19, 2022

I noticed that whether it is

  • basic_istream/basic_ostream in <iosfwd>,
  • or istream_iterator/ostream_iterator in <iterator>,
  • or string/string_view in <string>,
  • or formatter in <format>,

their template parameters charT/traits all start with lowercase.

We should make istream_view consistent with such a style.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 9, 2023

@jwakely Does this fit into a general policy?

@jwakely
Copy link
Member

jwakely commented Nov 10, 2023

It's consistent with our style for everything using char_traits since C++98, but I hate it. All other template parameters start with an uppercase letter, this is just a historical oddity IMHO.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 10, 2023

I see, thanks! Would it be desirable to change everything else to uppercase?

@jwakely
Copy link
Member

jwakely commented Nov 10, 2023

Maybe ... but I should probably run that past the group.

@tkoeppe tkoeppe added the lwg Issue must be reviewed by LWG. label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lwg Issue must be reviewed by LWG.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants