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

remove a few default constructors

This commit is contained in:
Nuno Lopes 2024-09-23 08:17:58 +01:00
parent 22d9bfad35
commit a62fede64b
16 changed files with 16 additions and 21 deletions

View file

@ -29,7 +29,7 @@ class explanation {
vector<std::pair<constraint_index, mpq>> m_vector;
ci_set m_set;
public:
explanation() {}
explanation() = default;
template <typename T>
explanation(const T& t) {

View file

@ -180,7 +180,7 @@ public:
m_column_permutation.transpose_from_left(j, k);
}
general_matrix(){}
general_matrix() = default;
general_matrix(unsigned n) :
m_row_permutation(n),
m_column_permutation(n),

View file

@ -19,8 +19,7 @@ namespace lp {
lia(lia),
lra(lia.lra),
m_settings(lia.settings()),
m_abs_max(zero_of_type<mpq>()),
m_var_register() {}
m_abs_max(zero_of_type<mpq>()) {}
bool hnf_cutter::is_full() const {
return

View file

@ -44,7 +44,7 @@ class implied_bound {
k = static_cast<lconstraint_kind>(k / 2);
return k;
}
implied_bound(){}
implied_bound() = default;
implied_bound(const mpq & a,
unsigned j,
bool is_lower_bound,

View file

@ -76,7 +76,7 @@ public:
}
indexed_vector() {}
indexed_vector() = default;
void resize(unsigned data_size);
unsigned data_size() const {

View file

@ -70,7 +70,7 @@ public:
}
}
// constructors
lar_term() {}
lar_term() = default;
lar_term(const vector<std::pair<mpq, unsigned>>& coeffs) {
for (auto const& p : coeffs) {
add_monomial(p.first, p.second);

View file

@ -17,7 +17,7 @@ struct point {
rational x;
rational y;
point(const rational& a, const rational& b): x(a), y(b) {}
point() {}
point() = default;
inline point& operator*=(rational a) {
x *= a;
y *= a;