I did something like this:
struct Vertex {
list<Edge*> edges;
};
struct Edge {
Vertex* v1;
Vertex* v2;
};
and the compiler error :
'Edge' was not declared in this scope
How do I solve this problem without putting these two into separate headers, "vertex.h" and "edge.h"?