Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-05-04 09:12:30


From: "Toon Knapen" <toon.knapen_at_[hidden]>
> 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.)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net