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

Bo Thorsen bo at vikingsoft.eu
Tue Jun 14 17:03:15 CEST 2016


Den 13-06-2016 kl. 12:16 skrev Denis Shienkov:
>> QScopedPointer?
>
> Do you have real example? ;)

Well, as Sean wrote it lacks the move, but if all you're after is to use 
it for a pointer in a class or make a local dynamically allocated var 
exception safe, then QScopedPointer is fine. It's limited in it's use, 
but that doesn't mean it's unusable.

Bo Thorsen,
Director, Viking Software.

-- 
Viking Software
Qt and C++ developers for hire
http://www.vikingsoft.eu



More information about the Development mailing list