I'm doing this game assignment for college in c++ and I'm trying to initialize the map (Pos_xy **map - base abstract class) to emptyPos that is a derivate class, although I'm getting this compiler's error
error: invalid conversion from ‘emptyPos**’ to ‘Pos_xy**’
Is this impossible to do ? I know if I just a simple pointer I can do [Pos_xy *c = new emptyPos; ] Is it wrong when we have Pos_xy** instead;
void Game::initMap(){
map = new emptyPos*[mapCol];
for (size_t col = 0; col < mapCol; col++)
map[col] = new emptyPos[mapRow];
}