|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48609 - trunk/libs/serialization/src
From: dgregor_at_[hidden]
Date: 2008-09-05 09:35:12
Author: dgregor
Date: 2008-09-05 09:35:11 EDT (Fri, 05 Sep 2008)
New Revision: 48609
URL: http://svn.boost.org/trac/boost/changeset/48609
Log:
Multiset's erase does not return an iterator in C++98
Text files modified:
trunk/libs/serialization/src/extended_type_info.cpp | 2 +-
trunk/libs/serialization/src/extended_type_info_typeid.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/libs/serialization/src/extended_type_info.cpp
==============================================================================
--- trunk/libs/serialization/src/extended_type_info.cpp (original)
+++ trunk/libs/serialization/src/extended_type_info.cpp 2008-09-05 09:35:11 EDT (Fri, 05 Sep 2008)
@@ -93,7 +93,7 @@
// remove entry in map which corresponds to this type
do{
if(this == *start)
- start = x.erase(start);
+ x.erase(start++);
else
++start;
}while(start != end);
Modified: trunk/libs/serialization/src/extended_type_info_typeid.cpp
==============================================================================
--- trunk/libs/serialization/src/extended_type_info_typeid.cpp (original)
+++ trunk/libs/serialization/src/extended_type_info_typeid.cpp 2008-09-05 09:35:11 EDT (Fri, 05 Sep 2008)
@@ -89,8 +89,8 @@
// remove entry in map which corresponds to this type
do{
- if(this == *start)
- start = x.erase(start);
+ if(this == *start)
+ x.erase(start++);
else
++start;
}while(start != end);
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