[Development] The future of smart pointers in Qt API

Ville Voutilainen ville.voutilainen at gmail.com
Fri Jan 31 21:51:58 CET 2020

On Fri, 31 Jan 2020 at 22:09, Allan Sandfeld Jensen <kde at carewolf.com> wrote:

> > > I still have trouble understanding why std::unique_ptr is called like
> > > this, whereas I could immediately understand what QScopedPointer does
> > > even before reading its documentation.
> >
> > What would you then name a Qt counterpart of std::unique_ptr, considering
> > that QScopedPointer is not such a counterpart?
> QScopedPointer is exactly the counterpart to unique_ptr, the only difference
> is the decision not to provide a move constructor and assignment when we
> finally were allowed to use C++11,

Which makes it not a counterpart.

More information about the Development mailing list