Date: Fri, 25 Jul 2025 11:31:14 -0700
> On Jul 25, 2025, at 10:32 AM, Frederick Virchanza Gotham via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
>
>
> On Friday, July 25, 2025, Julien Villemure-Fréchette wrote:
>>
>> Even the following is unspecified (could be true or false) "(void*)nullptr != reinterpret_cast<void*>(0x0)"
>
>
>
> I think you're suggesting it might be false if a nullptr is represented in memory by all bits 1.
>
> Which has never happened. Never ever.
>
That’s objectively wrong: https://c-faq.com/null/machexamp.html
>
>
>
> On Friday, July 25, 2025, Julien Villemure-Fréchette wrote:
>>
>> Even the following is unspecified (could be true or false) "(void*)nullptr != reinterpret_cast<void*>(0x0)"
>
>
>
> I think you're suggesting it might be false if a nullptr is represented in memory by all bits 1.
>
> Which has never happened. Never ever.
>
That’s objectively wrong: https://c-faq.com/null/machexamp.html
Received on 2025-07-25 18:31:27