[Development] Deleter that calls deleteLater() for use with std::unique_ptr<> and other smart pointers

Konstantin Tokarev annulen at yandex.ru
Wed Apr 19 15:44:24 CEST 2017


Hello,

I think it will be a good idea to provide implementation of functor calling 
deleteLater() instead of delete which can be used with std::unique_ptr,
std::shared_ptr and other smart pointers with compatible interface.

We already have QScopedPointerObjectDeleteLater, however it implements
cleanup(T*) instead of operator()(T*).

Any suggestions how to name this new class and where to place it?

-- 
Regards,
Konstantin



More information about the Development mailing list