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

subrange get<0> requires a copyable iterator #2425

Merged
merged 2 commits into from
Jan 22, 2022

Conversation

CaseyCarter
Copy link
Member

per LWG-3589.

Fixes #2399

@CaseyCarter CaseyCarter added LWG Library Working Group issue ranges C++20/23 ranges labels Dec 17, 2021
@CaseyCarter CaseyCarter requested a review from a team as a code owner December 17, 2021 05:48
Copy link
Contributor

@miscco miscco left a comment

Choose a reason for hiding this comment

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

I sah what you did there

stl/inc/xutility Outdated Show resolved Hide resolved
stl/inc/xutility Outdated Show resolved Hide resolved
@CaseyCarter CaseyCarter removed their assignment Dec 18, 2021
@@ -1483,3 +1484,44 @@ namespace test_subrange {
STATIC_ASSERT(test_tuple<subrange<int*, std::unreachable_sentinel_t, subrange_kind::sized>>());
STATIC_ASSERT(test_tuple<subrange<int*, std::unreachable_sentinel_t, subrange_kind::unsized>>());
} // namespace test_subrange

namespace test_lwg_3589 {
Copy link
Member Author

Choose a reason for hiding this comment

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

"LWG" is capitalized on 26.

Copy link
Member

Choose a reason for hiding this comment

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

I can live with this, no need to reset testing.

@StephanTLavavej StephanTLavavej self-assigned this Jan 12, 2022
@@ -1483,3 +1484,44 @@ namespace test_subrange {
STATIC_ASSERT(test_tuple<subrange<int*, std::unreachable_sentinel_t, subrange_kind::sized>>());
STATIC_ASSERT(test_tuple<subrange<int*, std::unreachable_sentinel_t, subrange_kind::unsized>>());
} // namespace test_subrange

namespace test_lwg_3589 {
Copy link
Member

Choose a reason for hiding this comment

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

I can live with this, no need to reset testing.

@mnatsuhara mnatsuhara removed their assignment Jan 19, 2022
@StephanTLavavej StephanTLavavej self-assigned this Jan 21, 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 94bb6d2 into microsoft:main Jan 22, 2022
@StephanTLavavej
Copy link
Member

Thanks for implementing this LWG issue resolution! ✅ 🚀 🎉

@CaseyCarter CaseyCarter deleted the ha_ha_ha_you_get_me branch August 21, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LWG Library Working Group issue ranges C++20/23 ranges
Projects
None yet
4 participants