C++ Logo


Advanced search

Re: [ub] Lvalue-to-rvalue conversion and reinterpret_cast-ed two's complement integers

From: Language Lawyer <language.lawyer_at_[hidden]>
Date: Tue, 2 Jul 2019 06:19:31 +0300
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.

Received on 2019-07-02 05:19:34