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:
parent
3d98bccc33
commit
98b5abb1d4
16 changed files with 38 additions and 50 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "util/rlimit.h"
|
||||
#include "util/statistics.h"
|
||||
#include "math/dd/dd_pdd.h"
|
||||
#include <cstring>
|
||||
|
||||
namespace dd {
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue