Dear all,
could anybody tell me what is wrong with the attached code? It gives a Bus Error at run time.
I need to do:
C *c = (C*)(new A());
because I have a function which returns a pointer to an object of class A and I want to use it as an object of class C. The code works if class C inherits directly from A.