Pages

Monday, August 9, 2010

Type-casting confusions

Type casting in C++ confuses me to no end, but what confuses me even more is the traditional typecasting expression. Consider this

member (cricket_team);

Now, when I see that line out of context, I can’t make out if that is a function call or type-casting. Which makes me wonder why would someone use that when it can me done like this

(member) cricket_team;

No comments:

Post a Comment