I understand that reinterpret_cast is dangerous, I\'m just doing this to test it. I have the following code:
reinterpret_cast
int x = 0; double y = reinterpret_c
If you are trying to convert the bits of your int to a the representation of a double, you need to cast the address not the value. You must also make sure the sizes match:
int
double
uint64_t x = 0x4045000000000000; double y = *reinterpret_cast(&x);