cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
question about type cast to reference or
question about type cast to reference or pointer, temporary reference or ptr be generated?
Apr 22, 2014 at 5:27am UTC
lays
(35)
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.