Hello,
I have a type Base and two identical types DerivedOne and DerivedTwo that are derived from Base.
I receive a Base * I know is a DerivedOne*.
Could I cast from DerivedOne* to DerivedTwo?
If yes how?
BR,
Cristian
PS
processMessage(Base * msg)
{
DerivedOne* pDerivedOne = dynamic_cast<DerivedOne *> msg;
HOW TO DO
DerivedTwo * pDeriveTwo = CAST<> pDerivedOne? Is it possible?
}