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 P2538R1 ADL-Proof projected #3822

Merged
merged 7 commits into from Jul 14, 2023

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Jun 23, 2023

As if it is a Defect Report against C++20. Fixes #3801.

Notes: the base class which conditionally provides difference_type also seemly needs to be ADL-proof.

Unfortunately, the changes are not so awesome at this moment, because MSVC STL hasn't avoided extraneous ADL in most standard algorithms (#140, #1596).

Driven-by: test P2609R3_relaxing_ranges_just_a_smidge in C++20 mode.

Driven by: test `P2609R3_relaxing_ranges_just_a_smidge` in C++20 mode.
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner June 23, 2023 02:24
@github-actions github-actions bot added this to Initial Review in Code Reviews Jun 23, 2023
stl/inc/xutility Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej moved this from Initial Review to Final Review in Code Reviews Jul 4, 2023
@StephanTLavavej
Copy link
Member

Thanks, looks perfect! ✨ 🎉

@strega-nil-ms strega-nil-ms moved this from Final Review to Ready To Merge in Code Reviews Jul 6, 2023
@StephanTLavavej
Copy link
Member

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

… struct 'Incomplete'" despite std::variant's ADL defenses
@StephanTLavavej
Copy link
Member

I've had to push an additional commit to work around VSO-1659496 "/clr emits bogus error C2079 "uses undefined struct 'Incomplete'" despite std::variant's ADL defenses".

FYI @strega-nil-ms as you previously approved.

@strega-nil-ms

This comment was marked as resolved.

@microsoft microsoft deleted a comment from azure-pipelines bot Jul 13, 2023
@StephanTLavavej StephanTLavavej merged commit cc6533a into microsoft:main Jul 14, 2023
35 checks passed
Code Reviews automation moved this from Ready To Merge to Done Jul 14, 2023
@StephanTLavavej
Copy link
Member

Thanks for implementing this feature backwards in time! ⏳ ✅ 🎉

@frederick-vs-ja frederick-vs-ja deleted the p2538r1 branch July 14, 2023 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx26 C++26 feature
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

P2538R1 ADL-Proof projected
4 participants