Skip to content

Commit 450a611

Browse files
Templated accessing via at() requires CTAD
1 parent 5325056 commit 450a611

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/experimental/__p0009_bits/mdspan.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ class mdspan
224224
//--------------------------------------------------------------------------------
225225
// [mdspan.basic.mapping], mdspan mapping domain multidimensional index to access codomain element
226226

227+
#if defined(_MDSPAN_USE_CLASS_TEMPLATE_ARGUMENT_DEDUCTION)
227228
MDSPAN_TEMPLATE_REQUIRES(
228229
class... SizeTypes,
229230
/* requires */ (
@@ -245,6 +246,7 @@ class mdspan
245246
}
246247
return __accessor_ref().access(__ptr_ref(), __mapping_ref()(static_cast<index_type>(std::move(indices))...));
247248
}
249+
#endif
248250

249251
MDSPAN_TEMPLATE_REQUIRES(
250252
class SizeType,

0 commit comments

Comments
 (0)