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

Speculatively implement LWG-3857 #3348

Merged
merged 7 commits into from
Jan 22, 2023

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Jan 16, 2023

Fixes #3336.

The involved constructor of basic_string_view is introduced in C++23, so this PR also fixes the issue in C++20 mode in an alternative way.

Also updates references to working darft in <format> to WG21-N4928.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner January 16, 2023 01:46
@StephanTLavavej StephanTLavavej added LWG Library Working Group issue format C++20/23 format labels Jan 18, 2023
stl/inc/format Outdated Show resolved Hide resolved
frederick-vs-ja and others added 2 commits January 18, 2023 17:20
Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

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

I do also appreciate the C++20 workaround. I personally think it's the best way forward.

@StephanTLavavej StephanTLavavej self-assigned this Jan 18, 2023
@StephanTLavavej
Copy link
Member

Looks great, thanks! I pushed a trivial commit to unqualify std::allocator in the test.

@StephanTLavavej StephanTLavavej removed their assignment Jan 19, 2023
@StephanTLavavej StephanTLavavej self-assigned this Jan 21, 2023
@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 4f5d13a into microsoft:main Jan 22, 2023
@StephanTLavavej
Copy link
Member

Thanks for improving basic_string_view's usability! 😸 🧵 🧶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format C++20/23 format LWG Library Working Group issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<format>: Failure to format basic_string_view with non-standard traits
4 participants