[Development] Is qsizetype *documented* to be ptrdiff_t?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Thu Sep 3 13:14:06 CEST 2020


On 03/09/2020 08:54, Lars Knoll wrote:
> I think we have long in most of the important places today. I agree that adding long to the overload set is somewhat annoying, but it could be an inline method mapping to QIntegerForSize<sizeof(long)>::type.
> 
> Has anybody ever looked how many places we would actually have problems with that? I doubt it’s that many.

A few?

* QDataStream

Interestingly enough, QDataStream is defined in terms of qintXX types 
(and it's missing long), QTextStream in terms of native datatypes (and 
has them all).

* QString/QByteArray


My 2 c,
-- 
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200903/c14b3bf3/attachment.bin>


More information about the Development mailing list