On 19.06.2012 12:17, Thiago Macieira wrote:
> On terça-feira, 19 de junho de 2012 11.42.10, Peter Kümmel wrote:
>> The only big change would be that a moc generated header
>> needs to be included:
>>
>> foo.h:
>>
>> template<class T>
>> struct A : public QObject
>> { ...
>>
>>       // only defined for moc
>>       Q_QOBJECT_SPECIALISATION(int>
>>
>> };
>>
>> #include "foo.moc.h"
>
> With the macro, there's no need to include the moc output.

There  would be the specialization A<int>,
but I'm only thinking aloud, it's not a concrete proposal.

>
> Unless that moc.h file is a different one that contains a C++11 extern 
> template
> indication only, plus the necessary Q_DECL_IMPORT.
>
>
>
>
> _______________________________________________
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to