Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48832 - trunk/libs/smart_ptr/src
From: pdimov_at_[hidden]
Date: 2008-09-17 18:17:29


Author: pdimov
Date: 2008-09-17 18:17:29 EDT (Wed, 17 Sep 2008)
New Revision: 48832
URL: http://svn.boost.org/trac/boost/changeset/48832

Log:
Fix #2338.
Text files modified:
   trunk/libs/smart_ptr/src/sp_collector.cpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/libs/smart_ptr/src/sp_collector.cpp
==============================================================================
--- trunk/libs/smart_ptr/src/sp_collector.cpp (original)
+++ trunk/libs/smart_ptr/src/sp_collector.cpp 2008-09-17 18:17:29 EDT (Wed, 17 Sep 2008)
@@ -104,6 +104,8 @@
 
             BOOST_ASSERT(p->use_count() != 0); // there should be no inactive counts in the map
 
+ m2[ i->first ];
+
             scan_and_count(i->second.first, i->second.second, m, m2);
         }
 
@@ -121,7 +123,7 @@
             if(p->use_count() != i->second) open.push_back(p);
         }
 
- std::cout << "... " << m2.size() << " objects in open.\n";
+ std::cout << "... " << open.size() << " objects in open.\n";
 
         for(open_type::iterator j = open.begin(); j != open.end(); ++j)
         {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk