mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
add virtual destructor to z3::object class
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
04c55c34e5
commit
231a985bf9
|
@ -470,6 +470,7 @@ namespace z3 {
|
||||||
context * m_ctx;
|
context * m_ctx;
|
||||||
public:
|
public:
|
||||||
object(context & c):m_ctx(&c) {}
|
object(context & c):m_ctx(&c) {}
|
||||||
|
virtual ~object() = default;
|
||||||
context & ctx() const { return *m_ctx; }
|
context & ctx() const { return *m_ctx; }
|
||||||
Z3_error_code check_error() const { return m_ctx->check_error(); }
|
Z3_error_code check_error() const { return m_ctx->check_error(); }
|
||||||
friend void check_context(object const & a, object const & b);
|
friend void check_context(object const & a, object const & b);
|
||||||
|
|
Loading…
Reference in a new issue