Francisco Jerez <curroje...@riseup.net> writes: > Chris Forbes <chr...@ijw.co.nz> writes: > >> +fs_reg::fs_reg(const backend_reg ®) >> +{ >> + init(); >> + *static_cast<backend_reg *>(this) = reg; >> >> This is a bit gross... > > 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.
> Meh... :)
pgpWvUjlACYdz.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev