can't reference have a type cast?
A simple question, just wanna make sure.
1 2
|
int a = 10;
double& b = a;
|
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.