From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Wood To: Stefan Seefeld Cc: gcc@gcc.gnu.org Subject: Re: typeid strangeness Date: Wed, 18 Jul 2001 08:09:00 -0000 Message-id: <20010718170857.A28479@alinoe.com> References: <3B54E701.7030307@sympatico.ca> X-SW-Source: 2001-07/msg01267.html 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