c++ - Deep copy vs Shallow Copy - Stack Overflow
P.S.: Just for reference: While it may read a little cryptic, here's what section 12.8, paragraph 8 of the 1998 C++ standard says about the above code examples: The implicitly defined copy constructor for class X performs a memberwise copy of its subobjec...