I understand that reinterpret_cast is dangerous, I\'m just doing this to test it. I have the following code:
int x = 0;
double y = reinterpret_c
reinterpret_cast is not a general cast. According to the C++03 spec section 5.2.10.1:
Conversions that can be performed explicitly using reinterpret_cast are listed below. No other conversion can be performed explicitly using reinterpret_cast.
And there is nothing listed that describes converting between integral and floating point types (or between integral types, even this is illegal reinterpret_cast)