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
Stephan T. Lavavej (StephanTLavavej) merged 2 commits into
microsoft:mainfrom
frederick-vs-ja:lwg-4511
Apr 17, 2026

Conversation

@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Fixes #6219.

Comment thread tests/std/tests/P0009R18_mdspan_mdspan/test.cpp Outdated
Co-authored-by: Jakub Mazurkiewicz <mazkuba3@gmail.com>
@StephanTLavavej Stephan T. Lavavej (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 Stephan T. Lavavej (StephanTLavavej) moved this from Initial Review to Ready To Merge in STL Code Reviews Apr 13, 2026
@StephanTLavavej Stephan T. Lavavej (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
Stephan T. Lavavej (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️⃣

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

3 participants