Drafting a project, I found it easiest to create mutually referenced structs in the main.cpp
file as follows:
struct component;
struct vertex{
component * parent;
...;
}
struct component{
vector<vertex *> vertices;
...;
}
Before I start coding up the final version of these structs as classes in a header file, is this the accepted way to do this?
Or is there a way one is "supposed" to create mutually referencing structs/classes?