Skip to content

Commit 8a0149a

Browse files
burblebeetkoeppe
authored andcommitted
LWG3645 resize_and_overwrite is overspecified to call its callback with lvalues
1 parent 5502d2c commit 8a0149a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/strings.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,12 +2940,15 @@
29402940
\item
29412941
\tcode{k} be \tcode{min(o, n)}.
29422942
\item
2943-
\tcode{p} be a \tcode{charT*},
2943+
\tcode{p} be a value of type \tcode{charT*} or \tcode{charT* const},
29442944
such that the range \crange{p}{p + n} is valid and
29452945
\tcode{this->compare(0, k, p, k) == 0} is \tcode{true} before the call.
29462946
The values in the range \crange{p + k}{p + n} may be indeterminate\iref{basic.indet}.
29472947
\item
2948-
$OP$ be the expression \tcode{std::move(op)(p, n)}.
2948+
\tcode{m} be a value of type \tcode{size_type} or \tcode{const size_type}
2949+
equal to \tcode{n}.
2950+
\item
2951+
$OP$ be the expression \tcode{std::move(op)(p, m)}.
29492952
\item
29502953
\tcode{r} = $OP$.
29512954
\end{itemize}
@@ -2958,11 +2961,11 @@
29582961
\expects
29592962
\begin{itemize}
29602963
\item
2961-
$OP$ does not throw an exception or modify \tcode{p} or \tcode{n}.
2964+
$OP$ does not throw an exception or modify \tcode{p} or \tcode{m}.
29622965
\item
29632966
$\tcode{r} \geq 0$.
29642967
\item
2965-
$\tcode{r} \leq \tcode{n}$.
2968+
$\tcode{r} \leq \tcode{m}$.
29662969
\item
29672970
After evaluating $OP$
29682971
there are no indeterminate values in the range \range{p}{p + r}.

0 commit comments

Comments
 (0)