[Development] unique_ptr and Qt, Take 2

Konstantin Shegunov kshegunov at gmail.com
Fri May 3 23:30:57 CEST 2019


On Fri, May 3, 2019 at 11:02 PM Иван Комиссаров <abbapoh at gmail.com> wrote:

> Which should be considered bad practice and banned on an API level
>

On Fri, May 3, 2019 at 11:30 PM Иван Комиссаров <abbapoh at gmail.com> wrote:

> By forcing usage of smart pointers, of course.
>

That's a joke, right? Smart pointers aren't pointers, they are *stack*-based
(auto-storage) objects that manage pointers. I draw the line to pay one
heap allocation for binary compatibility not two, one of them being the
size of void * mind you, wherever I can help it.
C++ is a stack-based language, are you intending to reinvent it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190504/09c574a5/attachment.html>


More information about the Development mailing list