Petri Latvala <petri.latv...@intel.com> writes:

> On 12/02/2013 10:36 PM, Francisco Jerez wrote:
>> Would you prefer 'this->operator=(reg);'?
>>
>> I just remembered...  The reason this wouldn't work is that it would
>> trigger an implicit conversion from 'backend_reg' to 'fs_reg', causing
>> infinite recursion into the fs_reg constructor.
>>
>>
>
> For the record, this->backend_reg::operator=(reg) would have done what 
> you aimed for.
>
Right, that would have worked too.

> Not saying it kosher either way though, calling assignment operator in a 
> constructor is iffy :P. The proper way is selecting the correct base 
> class constructor to call.
>
>
> -- 
> Petri Latvala
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Attachment: pgpyZjeiMRqOH.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to