R
.rhavin grobert
guess you have the following:
class AA;
class A {
shared_ptr<AA> m_a;
};
class BB: public AA;
class B {
shared_ptr<BB> m_a;
};
void g(B* pB);
void f(A* pA) { <-- called with a B*
// i need to call g() here //
};
what would be the best way to do this?
class AA;
class A {
shared_ptr<AA> m_a;
};
class BB: public AA;
class B {
shared_ptr<BB> m_a;
};
void g(B* pB);
void f(A* pA) { <-- called with a B*
// i need to call g() here //
};
what would be the best way to do this?