On Monday, 14 September 2020 13:39:09 PDT Volker Hilsheimer wrote: > https://codereview.qt-project.org/c/qt/qtbase/+/313610 > > but now I get ~QExplicitlySharedDataPointer<QPlatformPixmap> as an > unresolved external, presumably because the unspecialized > ~QExplicitlySharedDataPointer is inline.
It's not inline, it's because you didn't define it. To use the extern in the header, you need to add the definition to the .cpp, after the Private class was defined. That effectively means repeating the body of the destructor we extern'ed. So we'd probably need a macro to ensure that. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel DPG Cloud Engineering _______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
