[Qt5-feedback] Real 64 Bit support ?

Andre Somers andre at familiesomers.nl
Thu May 12 16:58:23 CEST 2011


Op Do, 12 mei, 2011 4:39 pm, schreef André Pönitz:
> On Thursday 12 May 2011 16:09:33 ext Andre Somers wrote:
>> > [And yes, the proposed change breaks sources, albeit in a minor way.
>> > Introducing the second template argument would trigger a change to
>> > three lines in the Creator source code (forward declarations of
>> QList)]
>> Does it really? If you have a default for the second parameter that is
>> equal to the current value, I don't think there is a source
>> incompatibility introduced?
>
> You cannot redeclare with different number of parameters
> and you cannot even have two declaration with giving (even
> the same!) default parameter twice.
>
> Andre'
>
Perhaps I misunderstand you. Cannot you do this?

template <class T, class IndexType = int> class QList {}?

That would, if I am correct, enable this:

QList<int> myNormalList;
QList<int, qint32> mySecondsNormalList; //equivalent to the above, on
platforms where int == qint32
QList<int, qint64> myHugeList;

The first is 100% source compatible with the current form, is it not?

André




More information about the Qt5-feedback mailing list