Skip to content

Commit 5938770

Browse files
jensmaurertkoeppe
authored andcommitted
LWG3546 common_iterator's postfix-proxy is not quite right
1 parent fa2aa68 commit 5938770

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/iterators.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5008,8 +5008,8 @@
50085008
Otherwise, if
50095009
\tcode{requires (I\& i) \{ \{ *i++ \} -> \exposconceptnc{can-reference}; \}}
50105010
is \tcode{true} or
5011-
\tcode{\libconceptx{constructible_\newline{}from}{constructible_from}<iter_value_t<I>, iter_reference_t<I>>}
5012-
is \tcode{false},
5011+
\tcode{\libconceptx{constructible_\newline{}from}{constructible_from}<iter_value_t<I>, iter_reference_t<I>> \&\& \libconcept{move_constructible}<iter_value_t<I>>}
5012+
is \linebreak \tcode{false},
50135013
equivalent to:
50145014
\begin{codeblock}
50155015
return get<I>(v_)++;
@@ -5025,7 +5025,7 @@
50255025
class @\exposid{postfix-proxy}@ {
50265026
iter_value_t<I> keep_;
50275027
@\exposid{postfix-proxy}@(iter_reference_t<I>&& x)
5028-
: keep_(std::move(x)) {}
5028+
: keep_(std::forward<iter_reference_t<I>>(x)) {}
50295029
public:
50305030
const iter_value_t<I>& operator*() const {
50315031
return keep_;

0 commit comments

Comments
 (0)