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

Implement P2905R2 Runtime Format Strings #4196

Merged
merged 5 commits into from
Jan 9, 2024

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Nov 15, 2023

Fixes #4184.

(Note that there'll be a trivial merge conflict with #4189.) Fixed myself.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner November 15, 2023 16:26
(Make `make_(w)format_args` only take lvalue references)
@StephanTLavavej StephanTLavavej added cxx20 C++20 feature format C++20/23 format defect report Applied retroactively labels Nov 15, 2023
@StephanTLavavej StephanTLavavej self-assigned this Nov 15, 2023
@StephanTLavavej StephanTLavavej removed their assignment Nov 15, 2023
@StephanTLavavej StephanTLavavej self-assigned this Nov 15, 2023
tests/libcxx/expected_results.txt Outdated Show resolved Hide resolved
Comment on lines +303 to +304
static_assert(CanMakeFormatArgs<Context, const int, const long long, const double, const char_type,
char_type* const, const char_type* const, const basic_string<char_type>, const basic_string_view<char_type>>);
Copy link
Member

Choose a reason for hiding this comment

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

No change requested: The fact that const rvalues are accepted indicates a design problem with the paper.

tests/std/tests/P0645R10_text_formatting_args/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P0645R10_text_formatting_args/test.cpp Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej removed their assignment Dec 16, 2023
@StephanTLavavej StephanTLavavej self-assigned this Jan 8, 2024
@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 90691c1 into microsoft:main Jan 9, 2024
35 checks passed
@StephanTLavavej
Copy link
Member

Thanks for completing C++20 again! ✅ 😹 😻

@frederick-vs-ja frederick-vs-ja deleted the p2905r2 branch January 9, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

P2905R2 Runtime Format Strings
3 participants