Il 04/04/25 20:15, Thiago Macieira ha scritto:
The QMetaType registration process takes type names into account to determine if two types are the same or not. That may be the right thing for the majority of types, but it's not for everything. For example, if two libraries have two different "struct Config" and register them, QMetaType will conclude they are the same. We could probably add a bit of smartness here by comparing the size, but that's still a good chance that it would be wrong. Though we should definitely not do a name comparison for types in unnamed namespaces (types whose name start with "{anonymous}::" or "(anonymous namespace)::"
Likely related: https://lists.llvm.org/pipermail/llvm-dev/2014-June/073465.html My 2 c, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - Trusted Software Excellence
smime.p7s
Description: Firma crittografica S/MIME
-- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development