can't reference have a type cast?

Apr 24, 2013 at 7:09am
A simple question, just wanna make sure.

1
2
int a = 10;
double& b = a;
Apr 24, 2013 at 7:13am
It is possible, but be careful and know what you do.
1
2
int a = 10;
double& b = reinterpret_cast<double&>(a);
Topic archived. No new replies allowed.