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

Иван Комиссаров abbapoh at gmail.com
Mon Jun 13 10:10:00 CEST 2016


If we don't have unique_ptr, then, probably, we don't have move semantics
too

2016-06-13 10:51 GMT+03:00 Sean Harmer <sean.harmer at kdab.com>:

> 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
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160613/32efaa6c/attachment.html>


More information about the Development mailing list