diff --git a/monaa/tre.cc b/monaa/tre.cc index f55bc59..3958c1b 100644 --- a/monaa/tre.cc +++ b/monaa/tre.cc @@ -200,7 +200,7 @@ void TRE::toEventTA(TimedAutomaton &out) const { regExpr->toEventTA(out); for (auto &s: out.states) { for (auto &edges: s->next) { - for (auto &edge: edges.second) { + for (auto edge: edges.second) { TAState *target = edge.target; if (target && target->isMatch) { edges.second.reserve(edges.second.size() + out.initialStates.size());