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