[Development] The future of smart pointers in Qt API

Vitaly Fanaskov vitaly.fanaskov at qt.io
Fri Jan 31 23:54:54 CET 2020


 > Can you maybe show some proof-of-concept pseudo-code how the typical
 >  current user code looks like that you intent to improve, and how
 > it will look like afterwards?

Sound like a good idea. I'll try to implement something to demonstrate this approach.

On 31/01/2020, 22:11, "André Pönitz" <apoenitz at t-online.de> wrote:

    On Fri, Jan 31, 2020 at 03:27:29PM +0000, Vitaly Fanaskov wrote:
    > Not abandoning, I think, but re-implementing properly. Raw pointers 
    > cause some certain problems here and changing them to something more 
    > smart would be nice. But it doesn't mean that we should get rid of 
    > parent-child model entirely. The point is that we can make it more 
    > explicit just by using smart pointers.
    
    Can you maybe show some proof-of-concept pseudo-code how the typical
    current user code looks like that you intent to improve, and how
    it will look like afterwards?
    
    > To make it clear, there is no decision made. We're just discussing.
    
    Right.
    
    And thank you for doing that.
    
    I was already becoming afraid that we might be running out of
    disputable items lately.
    
    Andre'
    



More information about the Development mailing list