3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00

import goodies from ps

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-09-21 11:13:03 -07:00
parent 708602dfbb
commit de20bffafe
2 changed files with 22 additions and 1 deletions

View file

@ -269,6 +269,11 @@ public:
return *this;
}
scoped_ptr& operator=(scoped_ptr&& other) {
*this = other.detach();
return *this;
};
T * detach() {
T* tmp = m_ptr;
m_ptr = nullptr;