mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Updated comments after updating variable names
This commit is contained in:
@@ -9610,7 +9610,7 @@ Explicit `move` is needed to explicitly move an object to another scope, notably
|
|||||||
{
|
{
|
||||||
X x;
|
X x;
|
||||||
sink(x); // error: cannot bind an lvalue to a rvalue reference
|
sink(x); // error: cannot bind an lvalue to a rvalue reference
|
||||||
sink(std::move(x)); // OK: sink takes the contents of r, r must now assumed to be empty
|
sink(std::move(x)); // OK: sink takes the contents of x, x must now be assumed to be empty
|
||||||
// ...
|
// ...
|
||||||
use(x); // probably a mistake
|
use(x); // probably a mistake
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user