Skip to content

Commit 3c596ed

Browse files
authored
Merge 2019-11 LWG Motion 9
P1878R1 Constraining Readable Types
2 parents 09c91df + 333b6eb commit 3c596ed

File tree

2 files changed

+114
-99
lines changed

2 files changed

+114
-99
lines changed

source/algorithms.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@
222222
If \range{a}{b} denotes a range,
223223
the semantics of \tcode{b - a} in these cases are the same as those of
224224
\begin{codeblock}
225-
iter_difference_t<remove_reference_t<decltype(a)>> n = 0;
225+
iter_difference_t<decltype(a)> n = 0;
226226
for (auto tmp = a; tmp != b; ++tmp) ++n;
227227
return n;
228228
\end{codeblock}
229229
and if \range{b}{a} denotes a range, the same as those of
230230
\begin{codeblock}
231-
iter_difference_t<remove_reference_t<decltype(b)>> n = 0;
231+
iter_difference_t<decltype(b)> n = 0;
232232
for (auto tmp = b; tmp != a; ++tmp) --n;
233233
return n;
234234
\end{codeblock}

0 commit comments

Comments
 (0)