Memory Leak: Bit-Wise and Member-wise Copy in C++

Earlier versions of C++ (prior to release 1.2) implemented assignment between objects through bit-wise copy of the source to the destination. Consider the following example that illustrates a bit-wise copy.

C++


The main program has two objects of class MyString.