Suppose I type an integer or integer array or any known type:
typedef int int2
Then I overload the * operator for int2 pairs, now if you initialize the variables a and b as int. Then will my * between a and b be overloaded *?
How to achieve int overloading and, in addition, use * for int as they are. Should I create a new type?
c ++ operator-overloading
Jose
source share