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

P2446R2: views::as_rvalue #3008

Merged
merged 13 commits into from
Aug 12, 2022
Merged

Conversation

JMazurkiewicz
Copy link
Contributor

@JMazurkiewicz JMazurkiewicz commented Aug 8, 2022

Implements P2446R2 - views::as_rvalue. Closes #2929.

Notes:

@CaseyCarter CaseyCarter added ranges C++20/23 ranges cxx23 C++23 feature labels Aug 8, 2022
@JMazurkiewicz JMazurkiewicz marked this pull request as ready for review August 10, 2022 01:37
@JMazurkiewicz JMazurkiewicz requested a review from a team as a code owner August 10, 2022 01:37
@strega-nil-ms strega-nil-ms self-assigned this Aug 10, 2022
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.

Minor changes requested, otherwise LGTM!

tests/std/tests/P2446R2_views_as_rvalue/env.lst Outdated Show resolved Hide resolved
stl/inc/ranges Show resolved Hide resolved
stl/inc/ranges Show resolved Hide resolved
@strega-nil-ms strega-nil-ms removed their assignment Aug 10, 2022
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
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.

Thanks!

stl/inc/ranges Outdated Show resolved Hide resolved
tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated Show resolved Hide resolved
@StephanTLavavej
Copy link
Member

Thanks, this looks great! I pushed minor changes (FYI @strega-nil-ms after you approved) for nitpicky style issues and a slight expansion of test coverage.

@StephanTLavavej StephanTLavavej self-assigned this Aug 11, 2022
@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 4a8d6dd into microsoft:main Aug 12, 2022
@StephanTLavavej
Copy link
Member

Thanks again for implementing this C++23 feature and helping users write more elegant, more efficient code! 😻 🚀 🎉

@JMazurkiewicz JMazurkiewicz deleted the as_rvalue branch August 16, 2022 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx23 C++23 feature ranges C++20/23 ranges
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P2446R2 views::as_rvalue
4 participants
  翻译: