question about type cast to reference or pointer, temporary reference or ptr be generated?

1
2
(type1 &)object1;//case 1
(type2 *)(&object1);//case 2 


in case 1, is it that a temp reference of the type "type1" be created other than a temp object itself?(what if "type1" is the base class of the type of object1)

in case 2, is it that also a temp ptr of type "type2" be created?
Topic archived. No new replies allowed.