Introduce the nullptr constant

Jens Gustedt 1
1 CAMUS - Compilation pour les Architectures MUlti-coeurS
Inria Nancy - Grand Est, ICube - Laboratoire des sciences de l'ingénieur, de l'informatique et de l'imagerie
Abstract : 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.
Document type :
Reports
Complete list of metadatas

https://hal.inria.fr/hal-02167929
Contributor : Jens Gustedt <>
Submitted on : Friday, June 28, 2019 - 12:01:43 PM
Last modification on : Saturday, June 29, 2019 - 1:35:37 AM

File

n2394+appendix.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-02167929, version 1

Citation

Jens Gustedt. Introduce the nullptr constant. [Research Report] N2394, ISO JTC1/SC22/WG14. 2019. ⟨hal-02167929⟩

Share

Metrics

Record views

63

Files downloads

144