Okay, I have two classes, A and B. B uses A, and A uses B. They both have their own header and source files... A.cpp, A.hpp, B.cpp and B.hpp
In A.hpp I include B.hpp and in B.hpp I include A.hpp... this isn't working. I get an infinite recursion error on MSVC++:
warning C4182: #include nesting level is 361 deep; possible infinite recursion
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
If I don't include A.hpp in B.hpp or vice versa, I get errors about one class being undefined... How can I solve this?