[Development] unique_ptr and Qt, Take 2

Konstantin Tokarev annulen at yandex.ru
Tue May 7 16:39:20 CEST 2019



04.05.2019, 02:16, "Иван Комиссаров" <abbapoh at gmail.com>:
> What I am talking about is that explicit is better than implicit. Taking an address of an object on a stack and passing it to a function that (possibly can) delete your object is not explicit.

That's why I advocate use of non-constant references instead of pointers where possbile. They never transfer ownership and state that clearly.

-- 
Regards,
Konstantin




More information about the Development mailing list