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

P2372R3: Fix handling of locale in chrono formatters #2273

Merged
merged 6 commits into from
Nov 13, 2021

Conversation

barcharcraz
Copy link
Member

Continuation of #1892

In addition to that pull requests content (which is mirrored here, although squashed into one commit) I have

fixes: #2237

approved by plenary a week ago:
cplusplus/papers#1039

@barcharcraz barcharcraz added format C++20/23 format chrono C++20 chrono defect report Applied retroactively labels Oct 13, 2021
@barcharcraz barcharcraz requested a review from a team as a code owner October 13, 2021 00:47
@CaseyCarter CaseyCarter self-assigned this Oct 13, 2021
@StephanTLavavej StephanTLavavej added the cxx20 C++20 feature label Oct 14, 2021
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
stl/inc/chrono Outdated Show resolved Hide resolved
Add the 'L' specifier to chrono formatter

Add a test for localized chrono formatting

Use dash in locale name for compatibility with old systems

ABI mitigation, drop std:: and auto

Keep ostream insertion operators localized
stl/inc/yvals_core.h Outdated Show resolved Hide resolved
Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

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

Thanks! Product code looks great; I have a couple of requests for expanded test coverage.

@StephanTLavavej
Copy link
Member

@barcharcraz @CaseyCarter I forgot that we need to mention this paper in yvals_core.h - I've added it to the C++20 section. 🧠 💡 😺

@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 785143a into microsoft:main Nov 13, 2021
@StephanTLavavej
Copy link
Member

Thanks @barcharcraz and @vitaut for implementing this C++20 DR! ✔️ ⌚ 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chrono C++20 chrono cxx20 C++20 feature defect report Applied retroactively format C++20/23 format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P2372R3 Fixing Locale Handling In chrono Formatters
4 participants
  翻译: