|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61546 - trunk/libs/serialization/src
From: ramey_at_[hidden]
Date: 2010-04-24 14:34:47
Author: ramey
Date: 2010-04-24 14:34:46 EDT (Sat, 24 Apr 2010)
New Revision: 61546
URL: http://svn.boost.org/trac/boost/changeset/61546
Log:
Fix error which results? in subsequent assertion/crash
Text files modified:
trunk/libs/serialization/src/void_cast.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/libs/serialization/src/void_cast.cpp
==============================================================================
--- trunk/libs/serialization/src/void_cast.cpp (original)
+++ trunk/libs/serialization/src/void_cast.cpp 2010-04-24 14:34:46 EDT (Sat, 24 Apr 2010)
@@ -285,7 +285,8 @@
for(it = s.begin(); it != s.end();){
const void_caster * vc = *it;
if(vc == this){
- s.erase(it++);
+ s.erase(it);
+ it = s.begin();
}
else
if(vc->m_parent == this){
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