Skip to content

Commit 170e9fb

Browse files
burblebeetkoeppe
authored andcommitted
LWG3974 mdspan::operator[] should not copy OtherIndexTypes
1 parent 199ed18 commit 170e9fb

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
@@ -21473,7 +21473,7 @@
2147321473
is \tcode{true}.
2147421474
Equivalent to:
2147521475
\begin{codeblock}
21476-
return operator[](as_const(indices[P])...);
21476+
return operator[](extents_type::@\exposid{index-cast}@(as_const(indices[P]))...);
2147721477
\end{codeblock}
2147821478
\end{itemdescr}
2147921479

0 commit comments

Comments
 (0)