lundi 29 août 2016

Circular buffer with smart_ptr and weak_ptr?

I can't find a complete example that shows how to eliminating strong circular references between shared_ptr.

Problem is how to use a weak_ptr to "close" the chain of generic elements and to access the "next" element with the weak_ptr.

Thank you.

Aucun commentaire:

Enregistrer un commentaire