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:
parent
708602dfbb
commit
de20bffafe
2 changed files with 22 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue