dimanche 13 mai 2018

Which line of the code make the reference count of a shared_ptr increasing?

I am looking for a way that determine which line of code is responsible for increasing reference count of a shared_ptr? for example, imagine a condition where I have a smart pointer and reference count of its is 12. I tend to know which line of the c++ code or assignment operator in my project is responsible for, whenever it was being 13.

Thanks for your help

Aucun commentaire:

Enregistrer un commentaire