Possible Duplicate:
How to differentiate (when overloading) between prefix and postfix forms of operator++? (C++)
Suppose I need to overload an operator function which performs 2 functions.
For example, the first function handles prefix increment and the second function handles postfix. Is there any different syntax for this?
This has already been answered: How to differentiate (when overloading) between prefix and postfix forms of operator++? (C++)
The gist of the answer is that prefix takes no parameter, postfix takes an unused int parameter.
Cheers,
Aaron