Skip to content

Implement LWG-4511 Inconsistency between the deduction guide of std::mdspan taking (data_handle_type, mapping_type, accessor_type) and the corresponding constructor#6231

Merged
StephanTLavavej merged 2 commits intomicrosoft:mainfrom
frederick-vs-ja:lwg-4511
Apr 17, 2026

Conversation

@frederick-vs-ja
Copy link
Copy Markdown
Contributor

Fixes #6219.

@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Apr 7, 2026
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner April 7, 2026 01:27
Comment thread tests/std/tests/P0009R18_mdspan_mdspan/test.cpp Outdated
Co-authored-by: Jakub Mazurkiewicz <mazkuba3@gmail.com>
@StephanTLavavej StephanTLavavej added LWG Library Working Group issue mdspan C++23 mdspan labels Apr 7, 2026
static_assert(same_as<decltype(mds), mdspan<bool, extents<int, 2, 2>, TrackingLayout<>, VectorBoolAccessor>>);
}

if !consteval { // typename AccessorType::data_handle_type, const MappingType&, const AccessorType&
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: This is the first use of if consteval as far as I'm aware, but it's fine in C++23-only code.

@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Apr 13, 2026
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews Apr 15, 2026
@StephanTLavavej
Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo. Please notify me if any further changes are pushed, otherwise no action is required.

@StephanTLavavej StephanTLavavej merged commit aa8d71d into microsoft:main Apr 17, 2026
49 checks passed
@github-project-automation github-project-automation bot moved this from Merging to Done in STL Code Reviews Apr 17, 2026
@StephanTLavavej
Copy link
Copy Markdown
Member

4️⃣ 5️⃣ 1️⃣ 1️⃣

@frederick-vs-ja frederick-vs-ja deleted the lwg-4511 branch April 17, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LWG Library Working Group issue mdspan C++23 mdspan

Projects

Archived in project

3 participants