Original Post
I''m working on a resource management system for a project, and have a question. If I have something like
void* pObject=new MyClass;
and then sometime later called
delete pObject;
what would happen? Would MyClass''s destructor get called, and if not, what would happen? Is there anyway I can keep the generality (templates won''t work, nor can all of the classes inherit from some common base class) while still ensuring the object''s destructor is called?
thanks in advance,
Liquid