Skip to content

Conversation

1uc
Copy link
Contributor

@1uc 1uc commented Sep 24, 2025

The class mdspan doesn't have a member data, it has data_handle (which returns a generalized pointer). This "data handle" is what's passed, together with an offset, to the accessor to "shift the pointer".

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

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

Please update the first line of the commit message to start with "[mdspan.sub.sub]" - looks good otherwise

@1uc 1uc force-pushed the 1uc/fix-submdspan-effect branch from e9f96ae to fb15bb1 Compare September 26, 2025 10:54
@1uc 1uc changed the title Fix typo in submdspan Effect:. [mdspan.sub.sub] Fix typo in submdspan Effect:. Sep 26, 2025
@1uc 1uc marked this pull request as ready for review September 26, 2025 12:27
The class `mdspan` doesn't have a member `data`, it has `data_handle`
(which returns a generalized pointer). This "data handle" is what's
passed, together with an offset, to the accessor to "shift the pointer".

The `AccessorPolify::offset_policy` is a type alias and therefore needs
a preceeding `typename`.

Co-authored-by: Jonathan Wakely <[email protected]>
@1uc 1uc force-pushed the 1uc/fix-submdspan-effect branch from 78c9c6e to 2b1a7ce Compare September 29, 2025 04:55
@1uc
Copy link
Contributor Author

1uc commented Sep 29, 2025

I've added the typename change to the commit and checked the implementation: indeed I fixed that without triggering that it's a typo in the spec.

@jensmaurer jensmaurer merged commit 82bf75b into cplusplus:main Sep 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants