Skip to content

Commit 2b1a7ce

Browse files
1ucjwakely
andcommitted
[mdspan.sub.sub] 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". The `AccessorPolify::offset_policy` is a type alias and therefore needs a preceeding `typename`. Co-authored-by: Jonathan Wakely <[email protected]>
1 parent b9d7470 commit 2b1a7ce

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)