[Interest] QScopedPointer and c++11 move semantics

Alexander Dyagilev alervdvcw at gmail.com
Fri Dec 30 20:32:43 CET 2016


This requires me to implement a special deleter function somewhere. I'm 
too lazy :)

QXXXXPointer is a more convenient way.


On 12/30/2016 10:31 PM, Giuseppe D'Angelo wrote:
> 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,




More information about the Interest mailing list