i have main class that i like to pass its pointer reference to on of the objects i creating but it gives me error :
Error 1 error C2664: 'GameController::GameController(GameLayer *&)' : cannot convert parameter 1 from 'GameLayer *const ' to 'GameLayer *&'
what i have in the GameLayer ( the main object )
m_pGameController = new GameController(this);
and in the GameController i have this constructor
GameController(GameLayer*& GameLayer)
{
setGameLayer(gameLayer); // to GameLayer memeber )
}
the resone is i need to be able to modify the data in GameLayer from GameController (GUI stuff)