Maett <[EMAIL PROTECTED]> writes:
>> What did I wrong?
>>
>
> Write
> *dst = *source;
> Now your operator= should be invoked.
Also note that by convention, op= returns a reference to *this,
allowing constructs like the following:
*dst1 = *dst2 = *src;
CLASS_A& CLASS_A::operator=(const CLASS_A &src)
{
a = src.a;
return *this;
}
Finally, naming the *source* parameter 'dst' (as you did) is at
best very misleading.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus