[Development] The future of smart pointers in Qt API
Vitaly Fanaskov
vitaly.fanaskov at qt.io
Thu Feb 13 12:37:15 CET 2020
As far as I know, there are no tasks created so far. I agree that we need to create a separate task, but not until the final decision.
As it was mentioned in this thread, moving Qt smart pointers to Qt5Compat module is not discussed so far. What to do with existing public API that uses smart Qt smart pointers is also a question. The best solution, in this case, would be porting them to standard smart pointers, I think.
On 2/13/20 12:08 PM, Giuseppe D'Angelo via Development wrote:
Il 13/02/20 10:57, Vitaly Fanaskov ha scritto:
I think that moving Qt smart pointers to Qt5Compat module creates almost
no hassle. For Qt users it should be a one line in the terminal to
replace includes in their code bases (probably also prepend a namespace
to classes' names, but I'm not sure if there is a namespace).
In general, I'd say that this is another problem should be addressed
separately. Feel free to kick off a new thread.
Is there a QTBUG tracking this idea?
It's not "so simple" because Qt smart pointers are being used in a couple of public APIs.
_______________________________________________
Development mailing list
Development at qt-project.org<mailto:Development at qt-project.org>
https://lists.qt-project.org/listinfo/development
--
Best Regards,
Fanaskov Vitaly
Senior Software Engineer
The Qt Company
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200213/1d16e9c7/attachment.html>
More information about the Development
mailing list