Skip to content

Commit

Permalink
Templated accessing via at() requires CTAD
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlachnit committed Nov 18, 2024
1 parent 5325056 commit 450a611
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/experimental/__p0009_bits/mdspan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class mdspan
//--------------------------------------------------------------------------------
// [mdspan.basic.mapping], mdspan mapping domain multidimensional index to access codomain element

#if defined(_MDSPAN_USE_CLASS_TEMPLATE_ARGUMENT_DEDUCTION)
MDSPAN_TEMPLATE_REQUIRES(
class... SizeTypes,
/* requires */ (
Expand All @@ -245,6 +246,7 @@ class mdspan
}
return __accessor_ref().access(__ptr_ref(), __mapping_ref()(static_cast<index_type>(std::move(indices))...));
}
#endif

MDSPAN_TEMPLATE_REQUIRES(
class SizeType,
Expand Down

0 comments on commit 450a611

Please sign in to comment.