|
|
|
|
|
by Too
2445 days ago
|
|
Lesson learned from c++ "rule of five"? Where if you implement a destructor you must also carefully implement a copy constructor so that the two copies of the object don't accidentally refer to each others members in any way. Something that is much harder than it sounds like, leading to the now more recommended "rule of zero" saying just don't. |
|
Clone would be what comes closest to copy constructors, and it has to be explicitly invoked.