I am trying to create a struct that includes a vector with type being that same struct. However, when I build, errors that indicate I am missing a ';' before '>' appear. I am not sure if the compiler is even recognizing that the vector as a thing :/ and I have already included in my code. Here is what I have so far:
#include <vector>
typedef struct tnode
{
int data;
vector<tnode> children;
GLfloat x; //x coordinate of node
GLfloat y; //y coordinate of node
} tnode;
Any help would be greatly appreciated!!