Skip to content

Commit eefa9e9

Browse files
Dawn Perchikzygoloid
authored andcommitted
LWG3355 The memory algorithms should support move-only input iterators introduced by P1207
1 parent cf6b6a4 commit eefa9e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/utilities.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8426,7 +8426,7 @@
84268426
for (; ifirst != ilast && ofirst != olast; ++ofirst, (void)++ifirst) {
84278427
::new (@\placeholdernc{voidify}@(*ofirst)) remove_reference_t<iter_reference_t<O>>(*ifirst);
84288428
}
8429-
return {ifirst, ofirst};
8429+
return {std::move(ifirst), ofirst};
84308430
\end{codeblock}
84318431
\end{itemdescr}
84328432

@@ -8478,7 +8478,7 @@
84788478
\begin{codeblock}
84798479
auto t = uninitialized_copy(counted_iterator(ifirst, n),
84808480
default_sentinel, ofirst, olast);
8481-
return {t.in.base(), t.out};
8481+
return {std::move(t.in).base(), t.out};
84828482
\end{codeblock}
84838483
\end{itemdescr}
84848484

@@ -8535,7 +8535,7 @@
85358535
::new (@\placeholder{voidify}@(*ofirst))
85368536
remove_reference_t<iter_reference_t<O>>(ranges::iter_move(ifirst));
85378537
}
8538-
return {ifirst, ofirst};
8538+
return {std::move(ifirst), ofirst};
85398539
\end{codeblock}
85408540

85418541
\pnum
@@ -8590,7 +8590,7 @@
85908590
\begin{codeblock}
85918591
auto t = uninitialized_move(counted_iterator(ifirst, n),
85928592
default_sentinel, ofirst, olast);
8593-
return {t.in.base(), t.out};
8593+
return {std::move(t.in).base(), t.out};
85948594
\end{codeblock}
85958595

85968596
\pnum

0 commit comments

Comments
 (0)