I am refactoring some older code that uses NULL
in many places. The question is
Is it safe to blindly replace all
NULL
instances bynullptr
?
I am particularly interested in scenario where replacing NULL by nullptr
may lead to some run-time errors (compile-time errors would be ok) but I can't think of any. If not, would it be safe to just auto-replace NULL by nullptr (fixing compile time errors if any).
I apologize if question have been asked earlier - I couldn't find it, I will delete it if you point me to the answer!