[Interest] QScopedPointer and c++11 move semantics

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri Dec 30 20:31:36 CET 2016


Il 30/12/2016 20:27, Alexander Dyagilev ha scritto:
> Hmmm.... So there is not std::unique_ptr analogue in Qt?
> 
> And we have to use std::unique_ptr with a special deleter...
> 
> (I would like to use &QObjet::deleteLater one).
> 
> Sadly...
> 

But if you have C++11 (because all of this requires move semantics) why
not just using unique_ptr?

Cheers,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL 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/interest/attachments/20161230/8ef4b3bf/attachment.bin>


More information about the Interest mailing list