I\'m trying to create a library for some work and am using operator overloading for assignment operation. Supposed X and Y are two instances of the class that has = overloaded t
What's going on is that,
A p = q + r;
Calls the copy constructor of A, not the assignment operator. Yes, it's weird. It's the same as if you had typed this:
A p(q + r);