Saturday, June 16, 2007

Declare non member functions when type conversion should apply to all parameters

parameters are eligible for implicit type conversion only if they are listed in the parameter list of the function.


i am confused on this point, since i read a lot in strousstrup also on this and i don't remember what  all i read.


the opposite of a member function is a non member function not a friend function


read this funda there ?

things to remember:

if you need type conversions on all parameters to a function ( including the one that would otherwise  be pointed to by the this pointer) the function must be a non member function.

No comments: