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:
parent
4ea63f8404
commit
6e2151dc18
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue