Say you have a templated class:
Code:
template <typname T>
class myClass
{
...
};
And you want to declare two myClass objects something like this:
Code:
int main(void)
{
myClass<int> intMyObj;
myClass<short> shortMyObj;


}
And you want to be able to assign and compare the two objects...
i.e.:
Code:
intMyObj+=shortMyObj;
obviously involves operator overloading, but how do you make the two types compatible?