[Qt-creator] Proposal: Adding std::(experimental::)optional

Christian Kandeler christian.kandeler at qt.io
Fri Aug 26 18:14:57 CEST 2016


On 08/26/2016 05:54 PM, Tobias Hunger wrote:
>> If zero is a
>> valid address in some environment, then it's the compiler's job to
>> ensure that the null pointer maps to something else at runtime.
> 
> I highly doubt that: 0 is a valid address, so the compiler can not
> just go ahead and map it elsewhere as it pleases.

Zero might be a valid address at runtime, but that has nothing to do
with zero (NULL, nullptr) as the value of a pointer; that's the whole
point. The resulting run time bit pattern is at the compiler's discretion.


Christian




More information about the Qt-creator mailing list