I am not using this code in any production environment, it is just for my understanding. Is this code valid (i.e. can I define my postfix operator like this?):
a++ is equivalent to a.operator++(0);. Your code is valid
a++
a.operator++(0);
13.5/7
When the postfix increment is called as a result of using the ++ operator, the int argument will have value zero.