C++ Logo


Advanced search

Subject: Re: [ub] Lvalue-to-rvalue conversion and reinterpret_cast-ed two's complement integers
From: Language Lawyer (language.lawyer_at_[hidden])
Date: 2019-07-01 22:19:31

On 27/06/2019 09:16, Jens Maurer wrote:
> Why doesn't bit_cast<> satisfy your needs?

I don't have needs to reinterpret_cast or bit_cast `-1` as `unsigned int`.
I've just proposed to slightly reduce the amount of UB, given that it likely would require no action from implementations.

SG12 list run by herb.sutter at gmail.com