Possible Duplicate:
Overload ++ operator
Say i have a class in which i overloads both the pre increment operator ++v and
also overloads the post increment operator v++. But When i write these overloading
function say Complex operator++(const Complex & c ) . How would i declare and
define these two operators simultaneously in my code ?
How would my code know which overloading to call (pre increment one or post increment one)?
As far as i can think this Will probably depends on the way i declare these pre and post increment operator Can Someone help me out on this . Thanks in Advance
From http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.14: