Can i use the same std::unique_ptr smart pointer in multiple Classes ?
-
wrote on 8 Jun 2021, 09:25 last edited by
Hello ,
Can i use the same std::unique_ptr in different classes ?
if that is the case how can i call this pointer ?
thank you :) -
Hello ,
Can i use the same std::unique_ptr in different classes ?
if that is the case how can i call this pointer ?
thank you :)@dziko147 If you want to share a pointer then use std::shared_ptr and not std::unique_ptr...
-
wrote on 8 Jun 2021, 10:43 last edited by
thank you for your reply
Ok i will try this
1/3