3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-25 01:55:32 +00:00

buffer: require a move constructor to avoid copies

remove unneded copy constructors from several classes
This commit is contained in:
Nuno Lopes 2020-06-03 11:57:49 +01:00
parent 3d98bccc33
commit 98b5abb1d4
16 changed files with 38 additions and 50 deletions

View file

@ -25,6 +25,7 @@
#include "util/rlimit.h"
#include "util/statistics.h"
#include "math/dd/dd_pdd.h"
#include <cstring>
namespace dd {

View file

@ -25,14 +25,14 @@ Revision History:
--*/
#ifndef HILBERT_BASIS_H_
#define HILBERT_BASIS_H_
#pragma once
#include "util/rational.h"
#include "util/lbool.h"
#include "util/statistics.h"
#include "util/checked_int64.h"
#include "util/rlimit.h"
#include <cstring>
typedef vector<rational> rational_vector;
@ -198,6 +198,3 @@ public:
void reset_statistics();
};
#endif

View file

@ -24,6 +24,7 @@ Revision History:
#include <algorithm>
#include <limits>
#include <iomanip>
#include <cstring>
#include "math/lp/lp_utils.h"
#include "util/stopwatch.h"
#include "math/lp/lp_types.h"

View file

@ -16,11 +16,11 @@ Notes:
--*/
#ifndef SPARSE_MATRIX_H_
#define SPARSE_MATRIX_H_
#pragma once
#include "util/mpq_inf.h"
#include "util/statistics.h"
#include <cstring>
namespace simplex {
@ -271,6 +271,3 @@ namespace simplex {
};
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef SUBPAVING_TYPES_H_
#define SUBPAVING_TYPES_H_
#pragma once
namespace subpaving {
@ -34,7 +33,6 @@ class power : public std::pair<var, unsigned> {
public:
power():std::pair<var, unsigned>() {}
power(var v, unsigned d):std::pair<var, unsigned>(v, d) {}
power(power const & p):std::pair<var, unsigned>(p) {}
var x() const { return first; }
var get_var() const { return first; }
unsigned degree() const { return second; }
@ -47,6 +45,4 @@ struct display_var_proc {
virtual void operator()(std::ostream & out, var x) const { out << "x" << x; }
};
};
#endif
}