c++ copy constructor signature : does it matter
问题 My current implementation uses lots of copy constructors with this syntax MyClass::Myclass(Myclass* my_class) Is it really (functionnaly) different from MyClass::MyClass(const MyClass& my_class) and why? I was adviced that first solution was not a true copy constructor. However, making the change implies quite a lot of refactoring. Thanks!!! 回答1: It's different in the sense that the first isn't a copy constructor, but a conversion constructor. It converts from a MyClass* to a MyClass . By