[Development] Can we use std::unique_ptr in Qt base/modules sources since Qt5.7 ?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Jun 15 15:44:09 CEST 2016

Il 14/06/2016 19:01, Sune Vuorela ha scritto:
> You can pass your own classes as handlers, provided that they have a
> public static function void cleanup(T *pointer).
>   - from the documentation.

However, you can't pass a per-QScopedPointer unique deleter object, 
which also makes this part of the API sub-par compared with the Standard...


Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160615/c88e872e/attachment.bin>

More information about the Development mailing list