Sorry, the title sounds a little confusing, let me explain.
I have a struct, which has a vector of structs, like this:
struct foo {
int x;
vector < foo > bar;
};
But I get an error of "No Instance of Overloaded Method" when I try this syntax:
foo a;
foo b;
b.x = 3;
a.bar.push_back(b);
Basically, I am just trying to create a "relationship" between a and b, with bar being the relationship vector containing all related instances of foo.
Any suggestions?

vector< foo& >.