Instead of
can I useCode:if (ptr) { delete ptr; ptr = 0; }
Is it true that if delete is called with a null pointer the code will not crash, since delete has internal checks.Code:delete ptr; ptr = 0;
---------------------------------------
Why do i want to do this?
The boss wants me to!