mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 10:04:35 +03:00
Consistency.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user