Mega Code Archive
Need reinterpret cast to perform reference conversion from unrelated classes -- static_cast doesnt work
class X {};
class Y {};
int main(int argc, char** argv)
{
int i = 3;
X x;
Y y;
X* xp;
Y* yp;
X& xr = x;
Y& yr = reinterpret_cast(x);
return (0);
}