[Development] Out of line move constructors
Thiago Macieira
thiago.macieira at intel.com
Mon Sep 14 23:48:07 CEST 2020
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
More information about the Development
mailing list