hi all
Can any one please help me out with this error msg that I am getting.
The error msg is
----------------------------------------------
binary '=' : no operator defined which takes a right-hand operand of type 'class Basket *' (or there is no acceptable conversion)
------------------------------------------------
what I am trying to do is,
Basket apple1;
Basket apple2;
Basket apple3;
apple3 = apple1 * apple2;
I already over loaded the operator*, operator<< ... I am not sure where I am going wrong. I can see that it is the liking the assignment operator but I am not sure how to proceed with that.
In my "operator*", it takes the left hand side (lhs) and multiplies with the right hand side (rhs) and then returns a pointer to the new Basket class where I store the answer...
Now logically I am thinking that when I do a = b*c it should take the b*c and return a pointer to the answer class which will be a. Please help me out thank you...