[Mesa-dev] [PATCH 06/23] i965: Define common register base class shared between both back-ends.

Francisco Jerez currojerez at riseup.net
Tue Dec 3 01:18:23 PST 2013


Petri Latvala <petri.latvala at 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131203/0e846a99/attachment.pgp>


More information about the mesa-dev mailing list