Community

Weak Pointers and Circular References in C++ 11

(Diego Dagum) In the first installment of this series on pointers, I covered the two most common smart pointers. One of them, shared_ptr, implements reference counting on its heap objects. A reference counter reaching 0 triggers an object deletion, avoiding memory leaks.

Read More - Register for Free Membership