Skip to content

Commit 4501cc9

Browse files
committed
LWG4243 as_bytes/as_writable_bytes is broken with span<volatile T>
1 parent c5f0472 commit 4501cc9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/containers.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20958,6 +20958,10 @@
2095820958
\end{itemdecl}
2095920959

2096020960
\begin{itemdescr}
20961+
\pnum
20962+
\constraints
20963+
\tcode{is_volatile_v<ElementType>} is \tcode{false}.
20964+
2096120965
\pnum
2096220966
\effects
2096320967
Equivalent to: \tcode{return R\{reinterpret_cast<const byte*>(s.data()), s.size_bytes()\};}
@@ -20974,7 +20978,8 @@
2097420978
\begin{itemdescr}
2097520979
\pnum
2097620980
\constraints
20977-
\tcode{is_const_v<ElementType>} is \tcode{false}.
20981+
\tcode{is_const_v<ElementType>} is \tcode{false} and
20982+
\tcode{is_volatile_v<ElementType>} is \tcode{false}.
2097820983

2097920984
\pnum
2098020985
\effects

0 commit comments

Comments
 (0)