C++ – Nested include – Avoiding ‘include nested too deeply error’
As others have suggested, use header guards. But also try forward declaring the classes in question. You may also have to work with pointers (rather than values) in at least one of your classes, but without seeing the code, we can’t tell. So edge.h should like something like: Note that you will have to define your function … Read more