you can always use -1 as an error - even if signedness was an issue there
is still qint64.

2015-01-29 14:36 GMT+01:00 Tomasz Siekierda <sierd...@gmail.com>:

> On 29 January 2015 at 14:32, Felix morack <felixo...@gmail.com> wrote:
> > Hi,
> >
> >
> > Qt containers use 'int' to refer to their size thus limiting their size
> to
> > INT_MAX.
> >
> > Is there any reason for this? Why dont they use size_t like the STL and
> the
> > rest of the world?
>
> Basically this is so that -1 can be used as error (see
> QList::indexOf() and similar methods). I know this argument is not
> very convincing, but there you go.
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to