mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
add move constructor to obj_ref
This commit is contained in:
parent
29acec672f
commit
e7f0f3b834
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue