-
Notifications
You must be signed in to change notification settings - Fork 812
[mdspan.sub.sub] Fix submdspan slice canonicalization #8996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21297,7 +21297,7 @@ | |
| class AccessorPolicy, class... SliceSpecifiers> | ||
| constexpr auto submdspan( | ||
| const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy>& src, | ||
| SliceSpecifiers... slices) -> @\seebelow@; | ||
| SliceSpecifiers... raw_slices) -> @\seebelow@; | ||
|
|
||
| template<class T, class IndexType> | ||
| concept @\defexposconcept{index-pair-like}@ = // \expos | ||
|
|
@@ -26579,7 +26579,7 @@ | |
| class AccessorPolicy, class... SliceSpecifiers> | ||
| constexpr auto submdspan( | ||
| const mdspan<ElementType, Extents, LayoutPolicy, AccessorPolicy>& src, | ||
| SliceSpecifiers... slices) -> @\seebelow@; | ||
| SliceSpecifiers... raw_slices) -> @\seebelow@; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was just a misapplication of the paper. https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3663r3.html#change-mdspan.sub.sub-submdspan-function-template said to change this.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you! |
||
| \end{itemdecl} | ||
|
|
||
| \begin{itemdescr} | ||
|
|
@@ -26589,7 +26589,7 @@ | |
| \pnum | ||
| Let \tcode{slices} be the pack introduced by the following declaration: | ||
| \begin{codeblock} | ||
| auto [...slices] = canonical_slices(src, raw_slices...); | ||
| auto [...slices] = canonical_slices(src.extents(), raw_slices...); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a bug in the paper. |
||
| \end{codeblock} | ||
|
|
||
| \pnum | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been changed by the paper, to match the change to [mdspan.sub.sub] in the paper.