Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58506 - trunk/libs/serialization/src
From: ramey_at_[hidden]
Date: 2009-12-23 02:21:05


Author: ramey
Date: 2009-12-23 02:21:05 EST (Wed, 23 Dec 2009)
New Revision: 58506
URL: http://svn.boost.org/trac/boost/changeset/58506

Log:
Fix plugin test/demo
Text files modified:
   trunk/libs/serialization/src/void_cast.cpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/libs/serialization/src/void_cast.cpp
==============================================================================
--- trunk/libs/serialization/src/void_cast.cpp (original)
+++ trunk/libs/serialization/src/void_cast.cpp 2009-12-23 02:21:05 EST (Wed, 23 Dec 2009)
@@ -284,6 +284,10 @@
     void_cast_detail::set_type::iterator it;
     for(it = s.begin(); it != s.end();){
         const void_caster * vc = *it;
+ if(vc == this){
+ s.erase(it++);
+ }
+ else
         if(vc->m_parent == this){
             s.erase(it);
             delete vc;


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