C++ copy constructor and shallow copy
- by bartek
Hi, suppose I have a class with many explicit (statically allocated) members and few pointers that are allocated dynamically.
When I declare a copy constructor in witch I make a deep copy of manually allocated members, I wouldn't like to copy each statically allocated member explicite.
How can I use implicit (default) copy constructor functionality in explicit copy constructor?