Skip to content

Implement LWG-3712: chunk_view and slide_view should not be default_initializable#2943

Merged
StephanTLavavej merged 6 commits intomicrosoft:mainfrom
frederick-vs-ja:lwg-3712
Jul 28, 2022
Merged

Implement LWG-3712: chunk_view and slide_view should not be default_initializable#2943
StephanTLavavej merged 6 commits intomicrosoft:mainfrom
frederick-vs-ja:lwg-3712

Conversation

@frederick-vs-ja
Copy link
Contributor

Towards #2872.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner July 25, 2022 18:34
@StephanTLavavej StephanTLavavej added the LWG Library Working Group issue label Jul 25, 2022
@CaseyCarter CaseyCarter added the ranges C++20/23 ranges label Jul 26, 2022
Comment on lines +38 to +40
// Validate non-default-initializability
STATIC_ASSERT(!is_default_constructible_v<R>);
STATIC_ASSERT(!default_initializable<R>);
Copy link
Member

Choose a reason for hiding this comment

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

No change requested: test_one() is called for both input-only and forward ranges, so this covers the LWG issue's modifications to both the primary template and the specialization for forward ranges.

@StephanTLavavej StephanTLavavej self-assigned this Jul 27, 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 374fc90 into microsoft:main Jul 28, 2022
@StephanTLavavej
Copy link
Member

Thanks for implementing so many LWG issue resolutions and improving conformance! 😻 😻 😻 😻 😻 😻 😻 😻

@frederick-vs-ja frederick-vs-ja deleted the lwg-3712 branch July 28, 2022 03:54
fsb4000 pushed a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
…ult_initializable` (microsoft#2943)

Co-authored-by: Casey Carter <Casey@Carter.net>
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.

3 participants