Just kindding
I see threre is no way to solve this without making even more trouble.
My own idea was to make an intelligent reference class which knows what to do by default but I guess that will take some time.
Code: Select all
//! Destructor.
virtual ~IReferenceCounted()
{
// reference counted object destroyed improperly
if( ReferenceCounter > 1 )
{
printf("warning: incorrect destruction of IReferenceCounted object, used by %i\n",ReferenceCounter);
printf("--object name: %s\n",DebugName);
}
}