This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: typeid strangeness


On Tue, Jul 17, 2001 at 08:31:45PM -0500, Stefan Seefeld wrote:
> For debugging purposes, I'd like to track these calls, so I
> implement them like this:
...
> #ifdef LCLOG
>    Logger::log(Logger::lifecycle) << "ServantBase::_add_ref on " << this << " ("
>    << typeid(this).name() << "): new count is " << _refcount << std::endl;
> #endif

You might want to use libcwd instead.
See http://libcw.sourceforge.net/debugging/

-- 
Carlo Wood <carlo@alinoe.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]