[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost
Subject:    [boost] weak_ptr debugging aid
From:       Patrick Julien <freak () codepimps ! org>
Date:       2006-03-31 11:17:52
Message-ID: 442D0FE0.2090408 () codepimps ! org
[Download RAW message or body]

This is a feature request to add weak_use_count() to weak_ptr.

I am not interested in this feature for anything else than a debugging 
aid.  Recently, a weakness was highlighted in one of my projects, I had 
stale weak_ptr objects that would remain in core even if all copies of 
weak and shared pointer objects should have been eliminated by now.

To confirm the bug fix and audit the rest of the code base, a debugger 
was used to set a conditional break point on internal members of 
weak_ptr.  I would rather have the ability to write assertions when 
needed hence weak_use_count().

regards,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic