Boost logo

Boost-Commit :

From: sixtrillion_at_[hidden]
Date: 2007-05-29 23:36:00


Author: sixtrillion
Date: 2007-05-29 23:35:59 EDT (Tue, 29 May 2007)
New Revision: 4364
URL: http://svn.boost.org/trac/boost/changeset/4364

Log:
Fixed another iterator bug.

Text files modified:
   sandbox/boost/extension/registry.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/boost/extension/registry.hpp
==============================================================================
--- sandbox/boost/extension/registry.hpp (original)
+++ sandbox/boost/extension/registry.hpp 2007-05-29 23:35:59 EDT (Tue, 29 May 2007)
@@ -20,9 +20,9 @@
     library_iterator;
 public:
   ~basic_registry() {
- for (library_iterator it = libraries_.begin(); it != libraries_.end(); ++it)
+ for (library_iterator it = libraries_.begin(); it != libraries_.end();)
     {
- close(it->first.c_str());
+ close((it++)->first.c_str());
     }
   }
   bool clear() {


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