C
CD
Is this possible:
class base;
class derived; //ublic base
vector <base*> bList;
vector<derived*> dList;
//add some derived class pointer entries to dList;
bList = dList;
//OR bList = (vector <base*>) dList;
//use the entries as base class pointers
- CD
class base;
class derived; //ublic base
vector <base*> bList;
vector<derived*> dList;
//add some derived class pointer entries to dList;
bList = dList;
//OR bList = (vector <base*>) dList;
//use the entries as base class pointers
- CD