Skip to content

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

Merged
Stephan T. Lavavej (StephanTLavavej) merged 6 commits into
microsoft:mainfrom
frederick-vs-ja:lwg-3712
Jul 28, 2022
Merged

Stephan T. Lavavej (StephanTLavavej) merged 6 commits into
microsoft:mainfrom
frederick-vs-ja:lwg-3712

Conversation

@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Towards #2872.

@frederick-vs-ja
A. Jiang (frederick-vs-ja) requested a review from a team as a code owner July 25, 2022 18:34
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the LWG Library Working Group issue label Jul 25, 2022
@CaseyCarter Casey Carter (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
Copy Markdown
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.

Comment thread tests/std/tests/P2442R1_views_chunk/test.cpp Outdated
@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 374fc90 into microsoft:main Jul 28, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

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

@frederick-vs-ja
A. Jiang (frederick-vs-ja) deleted the lwg-3712 branch July 28, 2022 03:54
Igor Zhukov (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