typedef and operator overloading in C++ -


Assume I have typed an integer or integer array or a known type:

 < Code> typedef int int2  

Then I overload * operator for int2 pairs, now if I start the variable as int and int. Then between my * A and B * will be overloaded?

How can I achieve an overloading and still use it for int * How to use it. Should I make a new type?

What do you want powerful typify .


Comments