[Qt5-feedback] Real 64 Bit support ?

Andre Somers andre at familiesomers.nl
Thu May 12 17:20:40 CEST 2011


Op Do, 12 mei, 2011 5:08 pm, schreef André Pönitz:
> On Thursday 12 May 2011 16:58:23 ext Andre Somers wrote:
>> 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 {}?
>
> The "user code" in question is:
>
> // Foo.h
>
> template <typename T> class QList;
> void bla(const QList<int> &list);
>
> // Foo.cpp
>
> #include "Foo.h"
> #include <QList>
>
>
> That does not compile with
>
>    template <class T, class IndexType = int> class QList {}
>
> and the only practical solution would be to drop the forward
> declaration and use  #include <QList> in Foo.h .
>
> It's not a big change, but it _is_ a change.

Right. I get it. Thank you for this insight. You are right that that would
entail a small change.

André




More information about the Qt5-feedback mailing list