$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-05-11 11:21:29
On 05/11/2005 10:45 AM, Gennadiy Rozental wrote:
>>I've had a need for tracking a class' instances for
>>some time now. I've used:
>>
>>http://cvs.sourceforge.net/viewcvs.py/boost-sandbox/boost-sandbox/boost/utility/object_tracked.hpp?rev=1.1&view=auto
>
>
> Could you give two lines rationale for what it is doing and how it's doing
> it?
The CTOR simply records each instance in a class set and the DTOR
removes it. The superclass assigns a unique ID to the instance.
-------------------
It's really very simple, but I've seen the equivalent used in several
memory managements test; hence, I thought it would a candidate for
inclusion.