Could you please explain (or give a link to an article or something like that) the reasons Qt developers used to choose signed 32-bit integer for this purpose? Signed 32-bit container sizes, i.e. number of elements in a container, would be acceptable (considering the equation 'n * sizeof(T)' for the amount of memory consumed by the array alone) but why use them to calculate and store sizes of allocated memory blocks?
On 09/03/2013 08:42 PM, Thiago Macieira wrote: > On terça-feira, 3 de setembro de 2013 19:33:47, Mehmet İpek wrote: >> Btw, size >> limit of QVector is 2^31 in 64 bit platforms too? > > Yes. All Qt container classes use a signed int for sizes.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest