3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

fix a few more warnings

This commit is contained in:
Nuno Lopes 2021-02-19 12:16:05 +00:00
parent d6ce9cce95
commit e773e1e78d
4 changed files with 6 additions and 9 deletions

View file

@ -24,7 +24,6 @@ Notes:
#include <queue>
#include <fstream>
#include <functional>
#include <algorithm>
#include "util/scoped_ptr_vector.h"
@ -188,7 +187,7 @@ public:
}
};
struct lemma_lt_proc : public std::function<bool(lemma*, lemma *)> {
struct lemma_lt_proc {
bool operator() (lemma *a, lemma *b) {
return (a->level () < b->level ()) ||
(a->level () == b->level () &&
@ -731,11 +730,11 @@ inline std::ostream &operator<<(std::ostream &out, pob const &p) {
return p.display(out);
}
struct pob_lt_proc : public std::function<bool(const pob*, const pob*)> {
struct pob_lt_proc {
bool operator() (const pob *pn1, const pob *pn2) const;
};
struct pob_gt_proc : public std::function<bool(const pob*, const pob*)> {
struct pob_gt_proc {
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::function<bool(app*, app *)> {
struct index_lt_proc {
arith_util m_arith;
index_lt_proc(ast_manager &m) : m_arith(m) {}
bool operator() (app *a, app *b) {