Skip to content
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

P3355R0: Add "Fix submdspan for C++26" proposal #462

Closed
wants to merge 2 commits into from

Conversation

mhoemmen
Copy link
Contributor

Add P3355R0, "Fix submdspan for C++26."

We propose the following fixes to submdspan for C++26.

  1. Permit user-defined pair types to be used as slices, rather than restricting the list to the opt-in set of types in [tuple.like].

  2. Change layout_left, layout_right, layout_left_padded, and layout_right_padded so that if a slice is strided_slice where stride_type models integral-constant-like and stride_type::value equals 1, then the same layout mapping type results as if the slice models index-pair-like<index_type>. This lets users express a slice with compile-time extent that does not cause common layouts to devolve into layout_stride.

@mhoemmen
Copy link
Contributor Author

Superseded by PR #474 .

@mhoemmen mhoemmen closed this Oct 16, 2024
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.

1 participant