Skip to content

subrange get<0> requires a copyable iterator#2425

Merged
StephanTLavavej merged 2 commits intomicrosoft:mainfrom
CaseyCarter:ha_ha_ha_you_get_me
Jan 22, 2022
Merged

subrange get<0> requires a copyable iterator#2425
StephanTLavavej merged 2 commits intomicrosoft:mainfrom
CaseyCarter:ha_ha_ha_you_get_me

Conversation

@CaseyCarter
Copy link
Contributor

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

@CaseyCarter CaseyCarter removed their assignment Dec 18, 2021
STATIC_ASSERT(test_tuple<subrange<int*, std::unreachable_sentinel_t, subrange_kind::unsized>>());
} // namespace test_subrange

namespace test_lwg_3589 {
Copy link
Contributor 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
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

Development

Successfully merging this pull request may close these issues.

LWG-3589 The const lvalue reference overload of get for subrange does not constrain I to be copyable when N == 0

4 participants