3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-07 03:31:23 +00:00

Use = default for virtual constructors.

This commit is contained in:
Bruce Mitchener 2022-08-04 13:21:07 +07:00 committed by Nikolaj Bjorner
parent aa0719abae
commit 5014b1a34d
85 changed files with 106 additions and 107 deletions

View file

@ -85,7 +85,7 @@ public:
bool is_scalar() const { return type() == expr_type::SCALAR; }
virtual bool is_pure_monomial() const { return false; }
std::string str() const { std::stringstream ss; print(ss); return ss.str(); }
virtual ~nex() {}
virtual ~nex() = default;
virtual bool contains(lpvar j) const { return false; }
virtual unsigned get_degree() const = 0;
// simplifies the expression and also assigns the address of "this" to *e