[Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

Thiago Macieira thiago.macieira at intel.com
Wed Mar 2 18:46:39 CET 2016

On quarta-feira, 2 de março de 2016 10:14:18 PST Ziller Eike wrote:
> That would break if any other code in the application (possibly in a
> different library linked to it) has e.g. using Blah = Foo<int>;
> right?
> That sounds pretty fragile. Especially if an application loads plugins.


You cannot compare the template instantiations' meta objects across libraries. 
They will compare as if they were different classes (with the same name).

That's an ODR violation, but it's allowed because we're talking about DLLs.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list