Preventing a Destructor from Running in C++
<p>I would like to ensure that an object's destructor does <em>not</em> run. Is there any way to do this other than putting the object on the heap and not calling delete?</p>
