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 move_iterator changes and move_sentinel #787

Merged
merged 5 commits into from
May 7, 2020

Conversation

CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented May 4, 2020

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

I've also speculatively implemented the proposed resolutions of LWG-3293, LWG-3391, and LWG-3435.

I had to patch a pair of libc++ tests that fail with these changes; I'll update the LLVM reference herein once those changes merge upstream. (These are the failing tests.)

Drive-by:

  • s/explicit constexpr/constexpr explicit/g (I somehow managed to sneak two occurrences into subrange)

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

I've also speculatively implemented the proposed resolutions of LWG-3293, LWG-3391, and LWG-3435.

I had to [patch a pair of libc++ tests](https://reviews.llvm.org/D79343) that fail with these changes; I'll update the LLVM reference herein once those changes merge upstream.

Drive-by:
* s/explicit constexpr/constexpr explicit/g (I somehow managed to sneak two occurrences into `subrange`)
@CaseyCarter CaseyCarter added the cxx20 C++20 feature label May 4, 2020
@CaseyCarter CaseyCarter requested a review from a team as a code owner May 4, 2020 22:41
stl/inc/iterator Show resolved Hide resolved
stl/inc/iterator Outdated Show resolved Hide resolved
stl/inc/iterator Outdated Show resolved Hide resolved
stl/inc/xutility Show resolved Hide resolved
stl/inc/xutility Outdated Show resolved Hide resolved
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.

Looks good to me, modulo the libcxx test failures.

@CaseyCarter CaseyCarter merged commit 07627b6 into microsoft:master May 7, 2020
@CaseyCarter CaseyCarter deleted the move_iterator branch May 7, 2020 23:02
@CaseyCarter
Copy link
Contributor Author

Thanks for this... 😎 ...moving contribution.

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

4 participants