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

2020-09-03 Thread Thiago Macieira
On Wednesday, 2 September 2020 23:54:35 PDT 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::type. > > Has anybody ever looked how many

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

2020-09-03 Thread Thiago Macieira
On Thursday, 3 September 2020 04:14:06 PDT Giuseppe D'Angelo via Development wrote: > 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). Intentionally! Because long changes size across pla

Re: [Development] Important recent changes in QList/QString/QByteArray

2020-09-03 Thread Иван Комиссаров
In the awful world of the standard library we call vector.shrink_to_fit() to ensure that. Note that while you have your «please free the memory» use-case someone might have the «please do not free memory, I still need it» use-case. Ivan > 3 сент. 2020 г., в 09:40, Jaroslaw Kobus написал(а): >

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

2020-09-03 Thread Giuseppe D'Angelo via Development
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::type. Has anybody ever looked how many places we would actually hav

[Development] Fw: Important recent changes in QList/QString/QByteArray

2020-09-03 Thread Jaroslaw Kobus
> > From: Development on behalf of Giuseppe > D'Angelo via Development > Sent: Wednesday, September 2, 2020 9:37 PM > To: Andrei Golubev; development@qt-project.org; Ville Voutilainen > Subject: Re: [Development] Important recent changes in > QList/QStr