Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-05-03 18:25:36

Mark Rodgers wrote:

> From: "Peter Dimov" <pdimov_at_[hidden]>


> >
> > To break cycles. If you never need to break cycles, you're likely to not
> > find it very useful. ;-)
> I do need to break cycles, but when I do, I normally just use a plain
> pointer. How is a weak_ptr better?

You can test the weak_ptr::use_count() to see if weak_ptr::get() points to
a deleted object.

Boost list run by bdawes at, gregod at, cpdaniel at, john at