I need to declare two stacks of a struct inside of it's own struct declaration. I know I could do this operation with an array as long as I reference it with a pointer inside the struct (i.e. FA *goingTo[30];
would give me an array of 30 FA
s). Is there a similar way to reference a stack?
typedef struct FA
{
std::stack<FA> goingTo;
std::stack<FA> comingFrom;
};