mercredi 21 août 2019

Why does nullptr need type? [duplicate]

This question already has an answer here:

cppreference says:

If two or more overloads accept different pointer types, an overload for std::nullptr_t is necessary to accept a null pointer argument.

and provides an example.

Is it the only reason?

Aucun commentaire:

Enregistrer un commentaire