if an object is already reference-counted (like glib in C), having obj_ref, obj_unref. All we have is a pointer like obj *p.
obj_ref
obj_unref
obj *p
How can we use c++'s shared_ptr to manage the object so that we can have an uniform interface.
shared_ptr
Aucun commentaire:
Enregistrer un commentaire