[Development] Out of line move constructors
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:
> 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