- #1
waht
- 1,501
- 4
I've got an overloaded operator +
Sample code
Is there something missing?
Code:
newtype X, Y, Z, W;W = X + Y; // works fine
W = Y + X; // works fine
// but with more arguments I'm getting compiler error
// saying there is no match for operator+
W = X + Y + Z;
Sample code
Code:
newtype operator+(newtype &A, newtype &B)
{
newtype C;
//more code
return C;
}
Is there something missing?