From 2b1a7cef3bff0a068bd13db511146c702ceea58e Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 24 Sep 2025 14:53:00 +0200 Subject: [PATCH] [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 --- source/containers.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/containers.tex b/source/containers.tex index f8187b40a1..6cefbd89fd 100644 --- a/source/containers.tex +++ b/source/containers.tex @@ -26118,9 +26118,9 @@ Equivalent to: \begin{codeblock} auto sub_map_result = submdspan_mapping(src.mapping(), slices...); -return mdspan(src.accessor().offset(src.data(), sub_map_result.offset), +return mdspan(src.accessor().offset(src.data_handle(), sub_map_result.offset), sub_map_result.mapping, - AccessorPolicy::offset_policy(src.accessor())); + typename AccessorPolicy::offset_policy(src.accessor())); \end{codeblock} \end{itemdescr}