I have a back up copy of data that I would like to protect so I made it const. I need to violate that constness on two occassions, once to store vi
const
Be aware that if you do this and the object really is const, then modifying it after casting away the constness is undefined behaviour.
fgBlocks.CopyInto(const_cast(backUpCopy));
Same thing for the other one:
const_cast(backUpCopy).RemoveAll(true);