Skip to content

Commit e9f96ae

Browse files
authored
Fix typo in submdspan Effect:.
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".
1 parent b9d7470 commit e9f96ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/containers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26118,7 +26118,7 @@
2611826118
Equivalent to:
2611926119
\begin{codeblock}
2612026120
auto sub_map_result = submdspan_mapping(src.mapping(), slices...);
26121-
return mdspan(src.accessor().offset(src.data(), sub_map_result.offset),
26121+
return mdspan(src.accessor().offset(src.data_handle(), sub_map_result.offset),
2612226122
sub_map_result.mapping,
2612326123
AccessorPolicy::offset_policy(src.accessor()));
2612426124
\end{codeblock}

0 commit comments

Comments
 (0)