next up previous contents
Next: Multiple Constructors in a Up: Software Development and Coding Previous: Class Member Declaration List   Contents

Reference Counting

Include the copy constructor when you need to count object instantiations. The compiler makes a default copy constructor if you do not specify one, and this one has no idea that you are trying to count object instantiations.


23#23



Falko Kuester 2001-08-24