Introduce the nullptr constant - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 2019

Introduce the nullptr constant

Résumé

Since more than a decade C++ has already replaced the problematic definition of NULL which might be either of integer type or void*. By using a new constant nullptr, they achieve a more constrained specification, that allows much better diagnosis of user code. We propose to integrate this concept into C as far as possible without putting much strain on implementations. This is a split-off of N2368 that builds on the approval of the "keywords" patches.
Fichier principal
Vignette du fichier
n2394+appendix.pdf (531.55 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-02167929 , version 1 (28-06-2019)
hal-02167929 , version 2 (06-10-2022)

Identifiants

  • HAL Id : hal-02167929 , version 1

Citer

Jens Gustedt. Introduce the nullptr constant. [Research Report] N2394, ISO JTC1/SC22/WG14. 2019. ⟨hal-02167929v1⟩
77 Consultations
311 Téléchargements

Partager

Gmail Facebook X LinkedIn More