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

C++20 reverse_iterator changes #759

Merged
merged 5 commits into from
Apr 30, 2020

Conversation

CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Apr 27, 2020

Changes primarily came from P0896R4 "<ranges>", but the operator<=> from P1614R2 "Adding Spaceship <=> To The Library" is here as well.

I had to patch a pair of libc++ tests for an extension that allows std::map<int, X>::reverse_iterator (resp. std::multimap<int, X>::reverse_iterator) to be instantiated when X is incomplete; this extension is no longer possible in C++20.

Drive-by:

  • LWG-3413 has a number now
  • Remove workarounds for VSO-612785 which seems not to reproduce with current EDG (Still needed for CUDA 9.2 in our Microsoft-internal test suite.)

Changes primarily came from P0896R4 "`<ranges>`", but the `operator<=>` from P1614R1 "Adding Spaceship `<=>` To The Library" is here as well.

I had to patch a pair of libc++ tests for an extension that allows `std::map<int, X>::reverse_iterator` (resp. `std::multimap<int, X>::reverse_iterator`) to be instantiated when `X` is incomplete; this extension is no longer possible in C++20.

Drive-by:
* LWG-3413 has a number now
* Remove workarounds for VSO-612785 which seems not to reproduce with current EDG
@CaseyCarter CaseyCarter added the cxx20 C++20 feature label Apr 27, 2020
@CaseyCarter CaseyCarter marked this pull request as ready for review April 28, 2020 03:37
@CaseyCarter CaseyCarter requested a review from a team as a code owner April 28, 2020 03:37
stl/inc/xutility Outdated Show resolved Hide resolved
stl/inc/xutility Show resolved Hide resolved
stl/inc/xutility Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej self-assigned this Apr 29, 2020
@StephanTLavavej
Copy link
Member

Related to #39 P0896R4 <ranges> and #62 P1614R2 Adding Spaceship <=> To The Library.

(@CaseyCarter, your original checkin notes said P1614R1, which was an earlier revision.)

@StephanTLavavej StephanTLavavej merged commit 045f3dd into microsoft:master Apr 30, 2020
@StephanTLavavej
Copy link
Member

!machinery reverse_iterator C++20 this implementing for Thanks

@CaseyCarter CaseyCarter deleted the reverse_iterator branch April 30, 2020 10:30
@CaseyCarter CaseyCarter mentioned this pull request May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx20 C++20 feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants