Boost logo

Boost :

From: Dietmar Kuehl (dietmar_kuehl_at_[hidden])
Date: 2002-05-04 19:06:02


Larry Evans wrote:

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

 From a glance at the code the sentence should start "You have to test.."
Otherwise you may end up with an assertion violation when you access the
'weak_ptr's pointer.

-- 
<mailto:dietmar_kuehl_at_[hidden]> <http://www.dietmar-kuehl.de/>
Phaidros eaSE - Easy Software Engineering: <http://www.phaidros.com/>

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk