Open
Description
class A {
std::string m_val;
public:
A() = default;
A(const A& other) = default;
A& operator= (const A& other) = default;
protected:
A(A&& other) = default;
A& operator= (A&& other) = default;
};
This protected move constructor must be ignored, redundant warning with invalid fixit must not be provided. Also we should pay attention for friend classes.