We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68ed69 commit 26e080aCopy full SHA for 26e080a
src/move_constructors.cpp
@@ -62,7 +62,7 @@ class Person {
62
// Move assignment operator for class Person.
63
Person &operator=(Person &&other) {
64
age_ = other.age_;
65
- nicknames_ = std::move(nicknames_);
+ nicknames_ = std::move(other.nicknames_);
66
valid_ = true;
67
68
// The moved object's validity tag is set to false.
0 commit comments