I just realized after years of writing C++, that I can safely delete a NULL pointer. So I figure, I'm not the only one that wasn't aware of this. Now I feel silly for all my
if(p) delete p;
code laying around.
Am I the only one that hadn't realized this? Or is it a less known feature of C++?