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

mdspan/layout_stride: fix missed rename in use of template argument name #6385

Merged
merged 1 commit into from Jul 23, 2023

Conversation

crtrott
Copy link
Contributor

@crtrott crtrott commented Jul 18, 2023

There is a typo where it says: LayoutStrideMapping, instead of StridedLayoutMapping. No other use of LayoutStrideMapping exists in the document.

This is in the constructor of layout_stride::mapping which takes a constrained other mapping and has remarks for the explicit condition:

template<class StridedLayoutMapping>
  explicit(see below)
  constexpr mapping(const StridedLayoutMapping& other) noexcept;

Remarks: The expression inside explicit is equivalent to:

   !(is_convertible_v<typename StridedLayoutMapping::extents_type, extents_type> && (
     is-mapping-of<layout_left, LayoutStrideMapping> || 
     is-mapping-of<layout_right, LayoutStrideMapping> ||
     is-mapping-of<layout_stride, LayoutStrideMapping>))

This needs to be:

   !(is_convertible_v<typename StridedLayoutMapping::extents_type, extents_type> && (
     is-mapping-of<layout_left, StridedLayoutMapping> || 
     is-mapping-of<layout_right, StridedLayoutMapping> ||
     is-mapping-of<layout_stride, StridedLayoutMapping>))

I am considering this an editorial fix.

There is a typo where it says: LayoutStrideMapping, instead of StridedLayoutMapping.
No other use of LayoutStrideMapping exists in the document.
@tkoeppe tkoeppe merged commit 0bf51a3 into cplusplus:main Jul 23, 2023
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.

None yet

3 participants