3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00

remove binary_function

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-02-18 13:18:58 -08:00
parent 9ae3339c33
commit 00dab30ea0
2 changed files with 6 additions and 4 deletions

View file

@ -24,6 +24,8 @@ Notes:
#include <queue>
#include <fstream>
#include <functional>
#include <algorithm>
#include "util/scoped_ptr_vector.h"
#include "muz/spacer/spacer_manager.h"
@ -186,7 +188,7 @@ public:
}
};
struct lemma_lt_proc : public std::binary_function<lemma*, lemma *, bool> {
struct lemma_lt_proc : public std::function<bool(lemma*, lemma *)> {
bool operator() (lemma *a, lemma *b) {
return (a->level () < b->level ()) ||
(a->level () == b->level () &&
@ -729,11 +731,11 @@ inline std::ostream &operator<<(std::ostream &out, pob const &p) {
return p.display(out);
}
struct pob_lt_proc : public std::binary_function<const pob*, const pob*, bool> {
struct pob_lt_proc : public std::function<bool(const pob*, const pob*)> {
bool operator() (const pob *pn1, const pob *pn2) const;
};
struct pob_gt_proc : public std::binary_function<const pob*, const pob*, bool> {
struct pob_gt_proc : public std::function<bool(const pob*, const pob*)> {
bool operator() (const pob *n1, const pob *n2) const {
return pob_lt_proc()(n2, n1);
}

View file

@ -36,7 +36,7 @@ Revision History:
using namespace spacer;
namespace {
struct index_lt_proc : public std::binary_function<app*, app *, bool> {
struct index_lt_proc : public std::function<bool(app*, app *)> {
arith_util m_arith;
index_lt_proc(ast_manager &m) : m_arith(m) {}
bool operator() (app *a, app *b) {