I have 2 classes: MySceneMangaer & MyScene
ยจ
MySceneManager includes MyScene in order to have a vector of scenes
but MyScene also needs to have a reference to its "manager"
so i tried forward declaring the MySceneManager class, which worked fine at first
but when i tried using the "SceneManagerRef" pointer (in the LoadNewScene function) i got an error saying : Invalid use of incomplete type
A forward declaration will only allow you to have pointers and references to the class. You will not be able to access any of its member functions. If you split the MyScene class into header and source file you wouldn't have this problem because you can then include MyScene.hpp and call the MyScene member functions from the source file without problems.