Boost logo

Boost :

Subject: Re: [boost] [1.37.0][serialization] Assertion failed at libs/serialization/src/extended_type_info.cpp:92
From: joaquin_at_[hidden]
Date: 2008-10-21 09:39:10

Hartmut Kaiser escribió:
>> assert(start != end);
>> // remove entry in map which corresponds to this type
>> do{
>> if(this == *start)
>> x.erase(start++);
>> else
>> ++start;
>> }while(start != end);
> After looking at this code again I have the impression that it is broken
> anyways. You can't safely increment an iterator after deleting the object it
> points to: erase(start++).

I think your objection is wrong: erase(start++) is perfectly safe
because the incrementing op
is executed before erase is invoked.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

Boost list run by bdawes at, gregod at, cpdaniel at, john at