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.
This commit is contained in:
Alexandre Duret-Lutz 2014-11-13 23:41:07 +01:00
parent 4ea63f8404
commit 6e2151dc18

View file

@ -1,4 +1,6 @@
// 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,