Default copy constructor and assignment for class with move constructor and assignment
问题 Let's say I have this class: class Test { public: Test(); }; AFAIK, compiler provides default copy constructor and assignment operators, which assign every member of other instance to the current instance. Now I add move constructor and assignment: class Test { public: Test(); Test(Test&& other); Test& operator=(Test&& other); }; Does this class still contain compiler-generated copy constructor and assignment operators, or I need to implement them? Edit . This is my test: class Test { public: