mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Closes #1315
This commit is contained in:
parent
1805589141
commit
4ed280b080
|
@ -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;
|
||||
}
|
||||
// ...
|
||||
|
|
Loading…
Reference in New Issue
Block a user