[Development] Making QScopedPointer scoped (again)

Dmitry Ashkadov dmitry.ashkadov at gmail.com
Wed Sep 4 13:19:31 CEST 2013


04.09.2013 09:36, Olivier Goffart пишет:
>
> It is unfortunate that the standard did not choose the name
> std::scoped_pointer,  but that's not the first time the standard and Qt are
> using different name (QByteArray <> std::string, QLinkedList <> std::list, ...)

I think, there is a real reason to name it as unique_ptr (unique 
ownership vs. shared ownership). And there is no need 'scoped_ptr' 
because 'const unique_ptr' is that you need as scoped_ptr.




More information about the Development mailing list