I'm a little confused using the "rule of three" with smart pointers. If I have a class whose single member is a smart pointer, do I need to explicitly define the destructor, copy constructor, and assignment operator?
I understand that since the smart pointer will process the resource automatically, then I do not need to explicitly define the destructor, and therefore I do not need to do this for the other two, based on the rule of three. However, I'm not sure if the default copy constructor is good enough for smart pointers like shared_ptr.
Thank you for your help!
EXP0 source
share