I have an object allocated on the heap. The object will be destroyed from the heap, but I need to preserve it, preferably through copying it and saving the pointer to it.I have an object allocated on the heap. The obj
I have an object allocated on the heap. The object will be destroyed from the heap, but I need to preserve it, preferably through copying it and saving the pointer to it.I have an object allocated on the heap. The obj