Dear all,
Let's say I have this code:
Here, I want to overload the assignment operator:Code:ClassA *a = foo();
Is it correct?Code:ClassA *ClassA::operator = (ClassA *rhs) { ....; }
I had tried it but it failed. I tapped a breakpoint, but it didn't execute that part of code.
Thanks.