Do I need to overload methods accepting const lvalue reference for rvalue references explicitly?
问题 currently I’m playing around with rvalue reference (C++11, g++ with gnu++x0) and I want to implement move semantics in my classes, because it just feels „right“. Do I need to overload each function which normally would accept const lvalue reference to benefit from the rvalue references? Let’s say this is my example class: class Person { public: Person() = default; Person(std::string &name); Person(const Person &rhs); Person(Person &&rhs); Person& operator=(const Person &rhs); Person& operator