tweex[dot]net

The square root of rope is string

[C++] Pointer Fun – SafeDelete

Introduction SafeDelete and SafeArrayDelete are functions that will delete the data a pointer points to before setting it to NULL. The idea being that they leave the pointer in a safe NULL state so that you don’t try and use a pointer which points to invalid memory. How to - With a Macro You can implement a SafeDelete set-up using a macro, it might well look something like this: