Consistency.

This commit is contained in:
Anthony Calandra
2016-11-06 18:24:31 -08:00
parent 2aa7b6a89e
commit 599b4e427a

View File

@@ -806,8 +806,8 @@ struct A {
A() : s("test") {} A() : s("test") {}
A(const A& o) : s(o.s) {} A(const A& o) : s(o.s) {}
A(A&& o) : s(std::move(o.s)) {} A(A&& o) : s(std::move(o.s)) {}
A& operator=(A&& other) { A& operator=(A&& o) {
s = std::move(other.s); s = std::move(o.s);
return *this; return *this;
} }
}; };