[Development] Another integer typedef OR how to prepare for 64-bit in Qt 5
André Pönitz
apoenitz at t-online.de
Wed Dec 5 05:48:05 CET 2018
On Tue, Dec 04, 2018 at 12:33:06AM +0100, Bernhard Lindner wrote:
> Hi!
>
> > > > Not yet. Yes, it will be a huge number.
> > >
> > > Which compels the questions:
> > >
> > > 1) is it worth it?
> >
> > No.
>
> What about those people who want (or must) implement clean interfaces in their code using
> standard size_t?
>
> Even if the number of objects/sizes/counts is usually below 2^31, it still is a pain to
> either suffer from numerous static analysis warnings (when implicitly converting size_t
> and int) or from implementing numerous casts.
Assuming that this "clean interface" means std:: snake_style and lower case
types "those people" will end up with shallow wrappers already for aestetical
reasons, anyway. "Translating" between int and what_ever_thing::size_type is
done there, too, as are conversion between std::string and QByteArray etc.
Andre'
More information about the Development
mailing list