Can different smart pointers refer to the same object?
It's possible to have weak_ptr along with shared_ptr. But I wanted to know if it is possible to create a shared_ptr and unique_pointer referencing to the same object. If yes, which rule has to be followed ?
Aucun commentaire:
Enregistrer un commentaire