[Boost-bugs] [Boost C++ Libraries] #1107: Add weak_use_count to weak_ptr as a debugging aid

Subject: [Boost-bugs] [Boost C++ Libraries] #1107: Add weak_use_count to weak_ptr as a debugging aid
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-21 23:20:18


#1107: Add weak_use_count to weak_ptr as a debugging aid
------------------------------+---------------------------------------------
 Reporter: pdimov | Owner: pdimov
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: smart_ptr
  Version: | Severity: Optimization
 Keywords: |
------------------------------+---------------------------------------------
 http://lists.boost.org/Archives/boost/2006/03/102620.php

   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().

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1107>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC