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

Move u*streampos to iosfwd #2223

Merged
merged 1 commit into from
Oct 20, 2021
Merged

Conversation

cpplearner
Copy link
Contributor

P1148R0 says u16streampos and u32streampos are defined in <iosfwd> (before P1148R0, their abode was unspecified). P0482R6 adds u8streampos to <iosfwd>.

@cpplearner cpplearner requested a review from a team as a code owner September 28, 2021 15:46
@@ -136,6 +136,11 @@ private:

using streampos = fpos<_Mbstatet>;
using wstreampos = streampos;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: the "conventional" ordering is

  • char
  • char8_t
  • char16_t
  • char32_t
  • wchar_t

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've approved, because I mildly prefer this ordering with "characters with native/locale-dependent encoding" before "characters with fixed encodings" - Yes, despite that wchar_t is fixed in practice - but I certainly wouldn't object to reordering.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, I just cannot resist to ring the "inconsistency" bell

@CaseyCarter CaseyCarter added the bug Something isn't working label Sep 28, 2021
@StephanTLavavej StephanTLavavej self-assigned this Sep 29, 2021
@StephanTLavavej
Copy link
Member

I'm mirroring this to an MSVC-internal PR; please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 1598738 into microsoft:main Oct 20, 2021
@StephanTLavavej
Copy link
Member

Thanks for finding and fixing this normative issue hidden in a massive wording overhaul! 😸 🎉 ✔️

@cpplearner cpplearner deleted the streampos branch October 20, 2021 06:43
AreaZR pushed a commit to AreaZR/STL that referenced this pull request Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
  翻译: