C++ Logo


Advanced search

Re: What happened on "Null safety" in p0946r0 about p <=> nullptr

From: Kazutoshi Satoda <k_satoda_at_[hidden]>
Date: Thu, 5 Dec 2019 21:15:16 +0900
On 2019/12/05 20:13 +0900, Jake Arkinstall wrote:
> Im just thinking from the memory model point of view. A nullptr is
> implicitly convertible to a fictional object at address 0. Valid pointers
> represent objects at address >0.

Such a model is beyond the standard. Requiring specific result based on
"null pointer is address 0" model can force suboptimal code generation
on environments with different model.
See: http://c-faq.com/null/machexamp.html


Received on 2019-12-05 06:18:01