Skip to content

P2446R2: views::as_rvalue - #3008

Merged
Stephan T. Lavavej (StephanTLavavej) merged 13 commits into
microsoft:mainfrom
JMazurkiewicz:as_rvalue
Aug 12, 2022
Merged

Stephan T. Lavavej (StephanTLavavej) merged 13 commits into
microsoft:mainfrom
JMazurkiewicz:as_rvalue

Conversation

@JMazurkiewicz

@JMazurkiewicz Jakub Mazurkiewicz (JMazurkiewicz) commented Aug 8, 2022

Copy link
Copy Markdown
Contributor

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

Notes:

Copy link
Copy Markdown
Contributor

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!

Comment thread tests/std/tests/P2446R2_views_as_rvalue/env.lst Outdated
Comment thread stl/inc/ranges
Comment thread stl/inc/ranges
@strega-nil-ms nicole mazzuca (strega-nil-ms) removed their assignment Aug 10, 2022
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

Comment thread stl/inc/ranges Outdated
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp Outdated
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp
Comment thread tests/std/tests/P2446R2_views_as_rvalue/test.cpp
@StephanTLavavej

Copy link
Copy Markdown
Member

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

@StephanTLavavej

Copy link
Copy Markdown
Member

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

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 4a8d6dd into microsoft:main Aug 12, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

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

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