As usual, it depends on the compiler.
I use MSVC, which compiles both of these lines exactly in the same code.
The rules say that if the pointer is null, the deletion does not work. Therefore, if you do not, the compiler should in any case.
Bo persson
source share