C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Make all data pointers intercompatible

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Tue, 28 Jan 2025 17:08:24 +0100
I do not think that is what unspecified means or guarantees.   -----Ursprüngliche Nachricht----- Von:organicoman <organicoman_at_[hidden] <mailto: organicoman_at_[hidden]> > Gesendet:Di 28.01.2025 17:04 Betreff:RE: AW: [std-proposals] Make all data pointers intercompatible An:Sebastian Wittmeier <wittmeier_at_[hidden] <mailto: wittmeier_at_[hidden]> >; The compiler is not meant to interpret intentions, so in case you do something unspecified, it is required that it should keep the value as is, just in case of reversing the undesired operation, you will get back exactly what you gave.    Sent from my Galaxy   -------- Original message -------- From: Sebastian Wittmeier <wittmeier_at_[hidden] <mailto: wittmeier_at_[hidden]> > Date: 1/28/25 4:25 PM (GMT+01:00) To: organicoman <organicoman_at_[hidden] <mailto: organicoman_at_[hidden]> > Subject: AW: [std-proposals] Make all data pointers intercompatible   Where is the guarantee that the compiler is not allowed to alter the bits coming from? If the result is unspecified, the bits can be changed, can't they?

Received on 2025-01-28 16:11:59