Skip to content

Commit 82bf75b

Browse files
authored
[mdspan.sub.sub] Fix typos in submdspan effects (#8248)
The class `mdspan` doesn't have a member `data`, it has `data_handle` (which returns a generalized pointer). The `AccessorPolify::offset_policy` is a type alias and therefore needs a preceeding `typename`.
1 parent 0201407 commit 82bf75b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/containers.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26118,9 +26118,9 @@
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,
26123-
AccessorPolicy::offset_policy(src.accessor()));
26123+
typename AccessorPolicy::offset_policy(src.accessor()));
2612426124
\end{codeblock}
2612526125
\end{itemdescr}
2612626126

0 commit comments

Comments
 (0)