[Interest] Qt5 - Application compile error on overloaded qRound()
Constantin Makshin
cmakshin at gmail.com
Sat Sep 1 04:10:08 CEST 2012
IMHO, an attempt to round an integer indicates that something in the code
is likely to be wrong. And explicit overloads will simply defer the bug
from compile-time to run-time. Not a good idea...
Anyway, rounding integers is not a [very] common task :-) so anyone who
needs that for some reason can write overloads {him|her}self.
On Sep 1, 2012 1:58 AM, "André Pönitz" <
andre.poenitz at mathematik.tu-chemnitz.de> wrote:
> On Fri, Aug 31, 2012 at 12:55:06PM +1000, Rohan McGovern wrote:
> > It doesn't seem like a Qt bug; rounding an integer doesn't make sense,
> > right?
>
> I'd actually think that (an) explicit no-op qRound overload(s) for
> int(eger types) would solve some of the problems here...
>
> Andre'
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120901/f6824cf3/attachment.html>
More information about the Interest
mailing list