yes, I tried that, and it worked, but I'd rather use a reference to the object instead of a pointer to the object when assigning... with the pointer, I'm stuck using:
Code:
token x;
const int EOF_TOK = 7;
//....
token* y = x;
token* z = EOF_TOK;
I just decided to scrap the operator= and just have to use y.tokenID = x.tokenID or y.tokenID = EOF_TOK; ... while it isn't fancy and cool, it works, just extra typing in MANY lines of code