[cfe-dev] Trying to work on "C++ Type-checking for copy assignment" project

Vyacheslav Kononenko vyacheslav at kononenko.net
Tue May 19 10:59:41 PDT 2009


Sebastian,
Is there a problem with my patch? Iw ant to continue to work on this
but to have too many unsubmitted changes is uncomfortable.

Thanks,
Vyacheslav

On Sat, May 16, 2009 at 2:07 PM, Vyacheslav Kononenko
<vyacheslav at kononenko.net> wrote:
>> But implicit assignment operators are not user-defined. I just wonder
>> how hard we should try in making POD types feel like built-ins.
> You mean by behavior or error message should be the same as for
> builtin? I think implicit assignment operator should provide the same
> behavior.
>
>> I'm not sure, but I don't think our lookup automatically limits it to
>> those operators that are viable for the left-hand side, so we'd have to
>> filter all others out manually. We certainly don't want every possible
>> assignment operator in that list.
> No, of course not. Only assignment operators from the class and
> parents. Yes that will require filtering the list. Another idea is to
> print "incompatible type" message when there is only one assignment
> operator available. That will require filtering that list as well.
>
>> Please do, and update the old test cases, and resend the patch. I'll
>> commit it. We can do minor improvements later.
>
> New patch is attached. I also added some test cases for compound
> assignment operator.
>
> Thanks,
> Vyacheslav
>



More information about the cfe-dev mailing list