[Development] Container refactor update

Thiago Macieira thiago.macieira at intel.com
Tue Jun 19 12:17:34 CEST 2012


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.

Unless that moc.h file is a different one that contains a C++11 extern template 
indication only, plus the necessary Q_DECL_IMPORT.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120619/51182389/attachment.sig>


More information about the Development mailing list