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

Sean Harmer sean.harmer at kdab.com
Mon Jun 13 09:51:48 CEST 2016


On Monday 13 June 2016 06:47:44 Bo Thorsen wrote:
> Den 12-06-2016 kl. 12:59 skrev Denis Shienkov:
> >> No, use of the C++11 Standard Library features is not permitted
> > 
> > Lousy to hear it...
> > 
> > How to do then RAII to avoid a leaks e.g. for Windows handles (HANDLE,
> > HKEY, HDEVINFO and other stuff)?
> 
> QScopedPointer?

Not moveable.

Sean
--
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. UK +44 (0)1625 809908, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions



More information about the Development mailing list