File tree Expand file tree Collapse file tree
doc/modules/ROOT/pages/4.guide Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ Move assignment closes any existing socket:
245245s1 = std::move(s2); // Closes s1's socket if open, then moves s2
246246----
247247
248- IMPORTANT: Source and destination must share the same execution context.
248+ NOTE: After a move, the destination uses the source's execution context.
249249
250250== The io_stream Interface
251251
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ Move assignment closes any existing tcp_acceptor:
225225acc1 = std::move(acc2); // Closes acc1's socket if open, then moves acc2
226226----
227227
228- IMPORTANT: Source and destination must share the same execution context.
228+ NOTE: After a move, the destination uses the source's execution context.
229229
230230== Thread Safety
231231
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ corosio::timer t3 = t2; // Error: deleted copy constructor
266266
267267Move assignment cancels any pending wait on the destination timer.
268268
269- IMPORTANT: Source and destination must share the same execution context.
269+ NOTE: After a move, the destination uses the source's execution context.
270270
271271== Thread Safety
272272
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ corosio::signal_set s2 = std::move(s1); // OK
350350corosio::signal_set s3 = s2; // Error: deleted copy constructor
351351----
352352
353- IMPORTANT: Source and destination must share the same execution context.
353+ NOTE: After a move, the destination uses the source's execution context.
354354
355355== Thread Safety
356356
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ corosio::resolver r2 = std::move(r1); // OK
257257corosio::resolver r3 = r2; // Error: deleted copy constructor
258258----
259259
260- IMPORTANT: Source and destination must share the same execution context.
260+ NOTE: After a move, the destination uses the source's execution context.
261261
262262== Thread Safety
263263
You can’t perform that action at this time.
0 commit comments