[Development] Compile errors, Qt configured with -qreal float
Thiago Macieira
thiago.macieira at intel.com
Thu Oct 27 01:23:15 CEST 2016
On quinta-feira, 27 de outubro de 2016 00:49:21 PDT Ola Røer Thorsen wrote:
> > https://codereview.qt-project.org/175025
>
> That's sort of a "sledge hammer" fix. Wouldn't this make it easier to be
> careless about mixing floats and doubles? I think it's a good practice to
> avoid mixing when possible, with regards to performance especially on
> smaller embedded devices.
Yes and no. qMax and qMin have been the bane of qreal for the last 10 years
because they are template functions. Solving those two will solve 95%+ of the
qreal=float issues. That means the chance of having a release that fails to
build under that condition lessens considerably.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list