[Development] Another integer typedef OR how to prepare for 64-bit in Qt 5
Philippe
philwave at gmail.com
Mon Dec 3 11:37:31 CET 2018
>> I've got the gut feeling that it will be an absolutely gigantic number,
Same feeling here ++
>> 1) is it worth it?
No, IMHO. For those rare cases when huge indexes / sizes are required,
the std containers can be used.
and BTW, I don't use QDataStream with Qt containers, must maybe there
would be an issue between Qt 5 and 6 data binaries (?).
Philippe
On Mon, 3 Dec 2018 11:02:31 +0100
Giuseppe D'Angelo via Development <development at lists.qt-project.org> wrote:
> Il 03/12/18 00:01, Thiago Macieira ha scritto:
> >> Has anyone actually tried changing size_type to a 64bit datatype, and
> >> checking how many warnings start appearing in user code? (E.g. just try
> >> with QString, QList, QVector; and build Creator, or some KDE libs). I've
> >> got the gut feeling that it will be an absolutely gigantic number,
> >> especially on Windows...
> > Not yet. Yes, it will be a huge number.
>
> Which compels the questions:
>
> 1) is it worth it?
>
> 2) should we offer users some way (configure time switch, template parameter, ...) to keep int-based indexes and avoid all these warnings while they fix their code to use a ssize_t-like index?
>
> Cheers,
> -- Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> KDAB - The Qt, C++ and OpenGL Experts
>
More information about the Development
mailing list