* src/tgbaalgos/degen.cc (~unicity_table): Accommodate g++ 4.0.1.
This commit is contained in:
parent
d5bb0ffe89
commit
ac41825efd
1 changed files with 7 additions and 2 deletions
|
|
@ -88,8 +88,13 @@ namespace spot
|
||||||
|
|
||||||
~unicity_table()
|
~unicity_table()
|
||||||
{
|
{
|
||||||
for (uniq_set::iterator i = m.begin(); i != m.end(); ++i)
|
for (uniq_set::iterator i = m.begin(); i != m.end();)
|
||||||
(*i)->destroy();
|
{
|
||||||
|
// Advance the iterator before destroying its key. This
|
||||||
|
// avoid issues with old g++ implementations.
|
||||||
|
uniq_set::iterator old = i++;
|
||||||
|
(*old)->destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue