Skip to content

Conversation

barcharcraz
Copy link
Contributor

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