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?
I successfully done ben’s challenge but in a different way:
Yes it is. What Ben did is redundant. Cast
ing 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.