So perhaps the safest way to do it is to use a handle instead of a pointer, and ptr_for_handle for getting temporary pointers to the object -- this'll automatically be NULL when the object has been removed.


Formerly known as JulzMighty.
I made KarBOOM!