To differentiate between postfix and prefix opeators , when
overloaded, we need to pass a dummy parameter.
Why should we pass ONLY int to overload postfix ++ / -- operator?
Why not a FLAOT/ DOUBLE ?
or a bit field?
Thanks,
Uday.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
overloaded, we need to pass a dummy parameter.
Why should we pass ONLY int to overload postfix ++ / -- operator?
Why not a FLAOT/ DOUBLE ?
or a bit field?
Thanks,
Uday.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Comment