281264 Messages: 270 Registered: June 2010 Location: Spain
Experienced Member
Actually it is a question related to C++: if you have different classes, each of them with their .h and .cpp files, how to make them “visible” each other. I have implemented pointers, to point each other. Instead of cross-include their .h files, I have included a forward class declaration; in their .cpp I have cross-included the .h file.
I have no idea whether there are better/more elegant/efficient ways to do it. Any thought?