Hi
I've had a problem with gcc mac osx which I think I figured out. I would
like to double check with people here to see if my understanding is correct:
I have a class A which class B inherit from. A has a pure virtual function
virtual in f1() = 0. In B I implement this function and the compiler works
out the code. However from A's destructor B can be compiled and then the
runtime aborts with saying that a call to a pure virtual function is not
allowed.
I'm assuming that B's destructor has been called before A's destructor and
thus it won't allow me to call the virtual function through the destructor.
The big question is what to do about this then? E.g. I have a class specific
cleanup method which is implemented with a GoF template pattern.
Thanks.
-- Henrik