4 May
2002
4 May
'02
2:12 p.m.
From: "Toon Knapen"
When creating a shared_ptr<T> from a weak_ptr<T>, I want the shared_ptr<T> to use the same count as the shared_ptr the weak_ptr was constructed from.
The CVS shared_ptr has a constructor that takes a weak_ptr and will attach to the original count (or throw an exception if this isn't possible, as the object has already been deallocated.)