Skip to content

Commit 4d69bcb

Browse files
committed
[allocator.requirements], [res.on.arguments] qualify std::move
1 parent 7b9e033 commit 4d69bcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/lib-intro.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,13 +1804,13 @@
18041804
Shall not exit via an exception.\br
18051805
post: \tcode{Y(a) == b}, \tcode{a == X(b)} & \\ \rowsep
18061806

1807-
\tcode{X u(move(a));} \br
1808-
\tcode{X u = move(a);} &
1807+
\tcode{X u(std::move(a));} \br
1808+
\tcode{X u = std::move(a);} &
18091809
&
18101810
Shall not exit via an exception.\br
18111811
post: \tcode{a1} equals the prior value of \tcode{a}. & \\ \rowsep
18121812

1813-
\tcode{X u(move(b));} &
1813+
\tcode{X u(std::move(b));} &
18141814
&
18151815
Shall not exit via an exception.\br
18161816
post: \tcode{a} equals the prior value of \tcode{X(b)}. & \\ \rowsep
@@ -2421,7 +2421,7 @@
24212421
\tcode{A} is bound, the argument binds to an lvalue reference~(\ref{temp.deduct.call})
24222422
and thus is not covered by the previous sentence. \exitnote \enternote If a program casts
24232423
an lvalue to an xvalue while passing that lvalue to a library function (e.g. by calling the function
2424-
with the argument \tcode{move(x)}), the program
2424+
with the argument \tcode{std::move(x)}), the program
24252425
is effectively asking that function to treat that lvalue as a temporary. The implementation
24262426
is free to optimize away aliasing checks which might be needed if the argument was
24272427
an lvalue. \exitnote

0 commit comments

Comments
 (0)