missing a return *this in a copy-assignment

This commit is contained in:
Sergey Zubkov
2018-09-06 07:30:45 -04:00
parent faad9d8b56
commit 1e12aba7af

View File

@@ -21354,6 +21354,7 @@ Besides destructors and deallocation functions, common error-safety techniques r
T& T::operator=(const T& other) { T& T::operator=(const T& other) {
auto temp = other; auto temp = other;
swap(temp); swap(temp);
return *this;
} }
(See also Item 56. ???) (See also Item 56. ???)