mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
add move constructor to obj_ref
This commit is contained in:
parent
29acec672f
commit
e7f0f3b834
|
@ -53,6 +53,10 @@ public:
|
|||
inc_ref();
|
||||
}
|
||||
|
||||
obj_ref(obj_ref && other) : m_obj(0), m_manager(other.m_manager) {
|
||||
std::swap(m_obj, other.m_obj);
|
||||
}
|
||||
|
||||
~obj_ref() { dec_ref(); }
|
||||
|
||||
TManager & get_manager() const { return m_manager; }
|
||||
|
|
Loading…
Reference in a new issue