Witajcie
Po takim czasie w CPP dopiero teraz potknąłem się na tym i nie wiem co zrobić. :D
Mam coś takiego:
/* resource.hpp */
#ifndef RES
#define RES
#include "manager.hpp"
class res{
friend class manager;
/* Przyjmijmy, że coś w tej klasie jest */
};
#endif
/* manager.hpp */
#ifndef RES_MAN
#define RES_MAN
#include "resource.hpp"
class manager{
/* Przyjmujmy że tutaj tworzyony jest std::vector<res*> wskazniki;
dlatego musimy zaincludowac resource.hpp, ale beda bledy "res was not declared in this scope" itp.*/
};
#endif
/* WIĘC: Panie phemiesze jak żyć? */
Nie mam pojęcia jak to rozwiązać. Podobny problem był jak chciałem zrobić w innym pliku typedef do Resource.