Commit ac41825e authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/tgbaalgos/degen.cc (~unicity_table): Accommodate g++ 4.0.1.

parent d5bb0ffe
......@@ -88,8 +88,13 @@ namespace spot
~unicity_table()
{
for (uniq_set::iterator i = m.begin(); i != m.end(); ++i)
(*i)->destroy();
for (uniq_set::iterator i = m.begin(); i != m.end();)
{
// Advance the iterator before destroying its key. This
// avoid issues with old g++ implementations.
uniq_set::iterator old = i++;
(*old)->destroy();
}
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment