[Development] QtCS2019 Notes: QtCore

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sat Nov 23 09:57:12 CET 2019

Il 23/11/19 09:47, André Pönitz ha scritto:
> So let's make this a real proposal: Should we have
>     qsizetype QContainer::size()
>     int QContainer::count() const
> ?

It's an idea, but overly confusing and will make our API a mess.

(Also, concretely, what about count(T), indexOf(T), capacity(), 
removeAll(T), length(), all the functions returning 

I'd rather break ODR by offering a porting macro that applications can 
set, and that makes the APIs return int (but everything still uses 
qsizetype internally).

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: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20191123/c8494d8c/attachment.bin>

More information about the Development mailing list