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

futurecondcol: avoid gcc-snapshot bug

* src/tgba/futurecondcol.cc: Use swap instead of assignement.  It is
more efficient, and it avoid the bug of gcc-snapshot mentionned two
commits below.
parent 4ea63f84
// Copyright (C) 2009 Laboratoire de recherche et développement de l'Epita.
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2014 Laboratoire de recherche et développement
// de l'Epita.
//
// This file is part of Spot, a model checking library.
//
......@@ -37,7 +39,7 @@ namespace spot
res.insert(i->second);
res.insert(future_conds_[dest].begin(), future_conds_[dest].end());
}
future_conds_[src] = res;
std::swap(future_conds_[src], res);
}
future_conditions_collector::future_conditions_collector(const tgba* aut,
......
Supports Markdown
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