mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Closes #1315
This commit is contained in:
@@ -5768,7 +5768,7 @@ It is simple and efficient. If you want to optimize for rvalues, provide an over
|
||||
{
|
||||
// GOOD: no need to check for self-assignment (other than performance)
|
||||
auto tmp = x;
|
||||
std::swap(*this, tmp);
|
||||
swap(tmp); // see C.83
|
||||
return *this;
|
||||
}
|
||||
// ...
|
||||
|
||||
Reference in New Issue
Block a user