I am getting base class pointer vector that needed to be passed to derived class pointer vector, please suggest best way to do the same.
One way will be
create a new derived class vector with the base class ptr vector size
loop the incoming vector
dynamic cast the base pointer and fill the derived vector.
Please suggest if there is some better way to do convince the compile that the vector is for the polymorphic types.