[Development] Another integer typedef OR how to prepare for 64-bit in Qt 5

Thiago Macieira thiago.macieira at intel.com
Tue Dec 4 07:34:17 CET 2018


On Monday, 3 December 2018 15:33:06 PST Bernhard Lindner wrote:
> What about those people who want (or must) implement clean interfaces in
> their code using standard size_t?

You're inverting the argument we've had for using int. It's not that it's 
always sufficient, but it's sufficient for a sufficient number of use-cases, 
thus avoiding unnecessary casts *and* avoiding mistakes in conversion.

The literal "1" is int, not size_t or long, so it's far easier to write int 
code than size_t.

In any case, Qt will not use an unsigned type.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Development mailing list