I am getting this error:
error: no match for 'operator=' in 'R = (&B)->Integer::operator+((
in an integer class I created.
I have an = operator as well as a + operator implemented
const Integer& Integer::operator+(Integer
const Integerr& Integer::operator=(Integer
Can someone point me in the correct direction on what operators I should have implemented to make the code below work correctly.
Integer A = "1200";
Integer B = "1400";
C = A+B;
I also posted the main function which is throwing the error above.
int main(int argc, char *argv)
Integer C = "567";
R = B+C;
cout << "done" << endl;