Need help in using a STL list and polymorphism

Pages: 12
You also have a memory leak in your X class. You have no dtor, but you should implement one and delete every A pointer. This should clear up the memory leak issue.
Topic archived. No new replies allowed.
Pages: 12