This commit is contained in:
hsutter 2019-01-16 16:05:41 -08:00
parent 1805589141
commit 4ed280b080

View File

@ -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) // GOOD: no need to check for self-assignment (other than performance)
auto tmp = x; auto tmp = x;
std::swap(*this, tmp); swap(tmp); // see C.83
return *this; return *this;
} }
// ... // ...