Comment on GotW #89 Solution: Smart Pointers by Rob Stewart
@Marco
You are correct that the block cannot be released until the last shared_ptr/weak_ptr is destroyed. However, the object’s destructor is invoked when the last shared_ptr is destroyed.
Read More »