Skip to content

Commit 536653b

Browse files
CaseyCarterjensmaurer
authored andcommitted
[mdspan.extents.cons] require conversions to index_type to be nonnegative
"nonnegative" is meaningless for a value of some arbitrary type which we've only required to be convertible to the integral type `index_type`, so this wording clearly intends to constrain the result of the conversion.
1 parent 3bdb5e7 commit 536653b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/containers.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19296,8 +19296,8 @@
1929619296
\item
1929719297
\tcode{sizeof...(exts) == 0} is \tcode{true}, or
1929819298
\item
19299-
each element of \tcode{exts} is nonnegative and
19300-
is representable as a value of type \tcode{index_type}.
19299+
each element of \tcode{exts} is representable
19300+
as a nonnegative value of type \tcode{index_type}.
1930119301
\end{itemize}
1930219302
\end{itemize}
1930319303

@@ -19340,8 +19340,8 @@
1934019340
\item
1934119341
\tcode{N} is zero, or
1934219342
\item
19343-
\tcode{exts[$r$]} is nonnegative and
19344-
is representable as a value of type \tcode{index_type} for every rank index $r$.
19343+
\tcode{exts[$r$]} is representable
19344+
as a nonnegative value of type \tcode{index_type} for every rank index $r$.
1934519345
\end{itemize}
1934619346
\end{itemize}
1934719347

0 commit comments

Comments
 (0)