samedi 18 août 2018

How is nullptr defined?

In Effective Modern C++, "Iterm 8: Prefer nullptr to 0 and NULL.", Page 59, it says:

nullptr's actural type is std::nullptr_t, and, in a wonderfully circular definition, std::nullptr_t is defined to be the type of nullptr.

A wonderfully circular definition?

How that comes?

Aucun commentaire:

Enregistrer un commentaire