Home Segments Index Top Previous Next

677: Mainline

Because of all the excessive-reclamation problems that come up when copy constructors are used in the presence of destructors, many experienced C++ programmers adhere to the following maxim:

Usually, you will define the copy constructor to prevent copying.