[Development] Basing Qt Creator Coding Style on C++ Core Guidelines?

Tobias Hunger tobias.hunger at gmail.com
Fri Dec 2 07:45:48 CET 2016


Hi Marc,

Am 28.11.2016 15:33 schrieb "Marc Mutz" <marc.mutz at kdab.com>:
> To see how simple gsl::owner markup is to incorporate into Qt, I sat
down, added it to QtGlobal and marked up QScopedPointer (incl. docs) with
gsl::owner.
>
> https://codereview.qt-project.org/178107

Owner does not work with Qt's object tree, so this seems like a pointless
exercise to me. Having some owners but not being able to use them
consistently is not a big win and already possible with plain C++ smart
pointers.

I asked Bjarne Stroustrup at Meeting C++ about Owner and object trees and
he said that is a memory model that is not supported and that we are on our
own there.

Best Regards,
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20161202/23e8313d/attachment.html>


More information about the Development mailing list