* src/tgba/state.hh (state_ptr_less_than, state_ptr_equal):

Declare as std::binary_function.
(state_ptr_hash): Declare as std::unary_function.
* src/tgbaalgos/lbtt.cc (state_acc_pair_equal,
state_acc_pair_hash): Likewise.
* src/misc/bddlt.hh (bdd_less_than): Likewise.
* src/misc/hash.hh (ptr_hash, string_hash): Likewise.
This commit is contained in:
Alexandre Duret-Lutz 2003-09-30 16:02:34 +00:00
parent 7f3c113130
commit 2e97e6447b
5 changed files with 37 additions and 18 deletions

View file

@ -3,6 +3,7 @@
#include <set>
#include <string>
#include <sstream>
#include <functional>
#include "tgba/tgba.hh"
#include "save.hh"
#include "tgba/bddprint.hh"
@ -87,7 +88,9 @@ namespace spot
typedef std::pair<state*, bdd> state_acc_pair;
struct state_acc_pair_equal
struct state_acc_pair_equal :
public std::binary_function<const state_acc_pair&,
const state_acc_pair&, bool>
{
bool
operator()(const state_acc_pair& left, const state_acc_pair& right) const
@ -98,7 +101,8 @@ namespace spot
}
};
struct state_acc_pair_hash
struct state_acc_pair_hash :
public std::unary_function<const state_acc_pair&, size_t>
{
bool
operator()(const state_acc_pair& that) const