[Qt5-feedback] Real 64 Bit support ?

Konstantin Tokarev annulen at yandex.ru
Thu May 12 15:13:09 CEST 2011



12.05.2011, 16:53, "Yves Bailly" <yves.bailly at sescoi.fr>:
> Le 12/05/2011 14:42, André Pönitz a écrit :
>
>>  On Thursday 12 May 2011 13:58:48 ext Keith Gardner wrote:
>>>  I would also like to see this. On top of a 64-bit build, I would like to see
>>>  the container classes (QVector, QList, etc...) have a qint64 to index the
>>>  values instead of a qint32.
>>  qint64 is expensive on (at least some) 32 bit machines.
>
> True.
>
>>  Having _different_ sizes (32/64 bit) depending on architecture spoils
>>  cross-platform data exchange using e.g. QDataStream. So that's even
>>  less of an option.
>
> Data exchange implies serializing things in a very controlled way, isn't it?
> I avoid sending a mere "int" through a QDataStream, I always cast it to a
> known-size type, e.g. int32_t or int64_t (depending on the needs). I would
> treat "size_t" just the same way, so no data exchange problem.

O rly? size_t is different on different platforms!

-- 
Regards,
Konstantin


More information about the Qt5-feedback mailing list