this is a complicate situation:
i have A class by type
Base
{
Btype* m_b;
};
and a class
DerivBtype:public Btype
{
..
}
and this class
class derived :public base
{
}
and i want to behave m_b as a derived class
i used this approach
m_b=new derived ;
and cast m_ b to derived where is neede is ther a simplere way to do this?