I just had an issue like that!I think it's possible to have a pointer variable, that points to a function.
In c# I replaced the variable with a function that acted like a variable. Then it could print a message everytime it was changed and tell me who changed it. Does c++ have similar?
Never tried it, but I recall reading something about it.
I just had an issue like that!I've been messing around some more.
In c# I replaced the variable with a function that acted like a variable. Then it could print a message everytime it was changed and tell me who changed it. Does c++ have similar?
For some reason, this method is changing the value. literally one line:
Code: [Select]
int getSize(int i)
return list[i].size;