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

Work around old g++ versions.

* src/tgbaalgos/isweakscc.cc (cycle_found): Add a const_cast.
parent 13025d6c
......@@ -49,7 +49,9 @@ namespace spot
if (i->ts->first == start)
break;
++i;
assert(i != dfs_.rend());
// The const cast is here to please old g++ versions.
// At least version 4.0 needs it.
assert(i != const_cast<const dfs_stack&>(dfs_).rend());
}
if (acc != aut_->all_acceptance_conditions())
{
......
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