Darf reinterpret_cast irgendwas an einer Variablen ändern?
-
Also darf es irgendwelche bits ändern?
-
Nein, tut es auch nicht, die ganzen Bits werden nur fortan anders interpretiert.
-
Hallo,
das ist nicht ganz korrekt.
5.2.10/3:The mapping performed by reinterpret_cast is implementation-defined [Note: it might, or might not, produce a represantion different from the original value.]