Is it enough nullptr protection

I successfully done ben’s challenge but in a different way:


is it enough nullptr protection?
if not why do i need to double check for nullptr?

Yes it is. What Ben did is redundant. Casting a nullptr has no effect so there’s no issue with not checking before using it.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms