Quick question guys, I have the following issue:
I have an Object (struct) pointer in my code, and when I modify something, to keep track of its history, I'm saving it in a vector (stack) of Objects. So I'm trying to do.
{
Object* myObject;
vector<Object> stack;
stuffHappensInObject(*myObject);
stack.push_back(myObject);
if(IclickLoadLast){
myObject = stack.at(size-1);
}
}
I'm having a problem with the push_back call and I don't know if its possible to get ALL the struct variables in a new Object into the stack. How can I do that?
myObjectwhen you callstuffHappensInObject()push_backisn't working.