remove uses of unary_function and binary_function

These were deprecated in C++11, and are supposed to be removed from
C++17, however gcc-snapshot just started warning about those.

* spot/misc/bddlt.hh, spot/misc/hash.hh, spot/misc/ltstr.hh,
spot/twa/taatgba.hh, spot/twaalgos/ltl2tgba_fm.cc: Here.
This commit is contained in:
Alexandre Duret-Lutz 2022-02-07 16:10:40 +01:00
parent a3753e608b
commit 58f33deeca
5 changed files with 15 additions and 24 deletions

View file

@ -1,6 +1,6 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2008-2019, 2021 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// Copyright (C) 2008-2019, 2021-2022 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
// Copyright (C) 2003-2006 Laboratoire d'Informatique de Paris 6
// (LIP6), département Systèmes Répartis Coopératifs (SRC), Université
// Pierre et Marie Curie.
@ -199,8 +199,7 @@ namespace spot
}
};
struct flagged_formula_hash:
public std::unary_function<flagged_formula, size_t>
struct flagged_formula_hash
{
size_t
operator()(const flagged_formula& that) const