[Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

Thiago Macieira thiago.macieira at intel.com
Thu Jul 23 19:23:28 CEST 2015

On Thursday 23 July 2015 09:21:13 Jérôme Godbout wrote:
> I admit the int to unsigned
> int is also a problem to become, -1 lead to 2^32 - 1, we can only do that
> if you known negative number aren't used and should do a static_cast
> or reinterpret_cast according to the situation and handle the conversion
> properly.

I've fixed most uses of -1 on unsigned types, as ICC complains about that too. 
The fix is simple: write ~0 instead of -1.
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list