This class is derived from in order to automatically track existing instances, and at shutdown write to Debug Output the creation count for leaked instances.
More...
template<class Obj>
class LeakedObjectInstances< Obj >
This class is derived from in order to automatically track existing instances, and at shutdown write to Debug Output the creation count for leaked instances.
The template class Obj should typically be set to the class deriving from this class. For example: class ParamBlockDesc2 : private LeakedObjectInstances<ParamBlockDesc2> On shutdown, if leakage is present the output to Debug Output would be: 2022/08/26 14:28:00 [12616] : 55114ms : **Leaked class ParamBlockDesc2 instances: 587, 588