I want the class OUT to hold an array of IN pointers. How many is unknown. This is what I have so far.
class OUT{
class IN{/**/};
IN** IN_handle;
int m_size_in;
OUT(int size_in):m_size_in(size_in){
IN_handle = new *IN[size_in];
}
~OUT(){
for(int i=0; i<m_size_in; i++){
delete IN_handle[i];
}
delete IN_handle;
}
};
compiler says:
cannot convert 'int**' to 'OUT::IN**' in assignment
std::vector<IN*>INs that the elements point to (at least thats what you do with the current code).<vector>,<string>, and smart pointers that way...new *IN?? Did you meannew IN*?