mirror of
https://github.com/Z3Prover/z3
synced 2025-07-26 22:17:54 +00:00
remove a few more copy constructors, though still not enough to enable the assertion in vector
I give up for now; there are too many copies left for little return..
This commit is contained in:
parent
e2b2b7f82e
commit
e844aef896
17 changed files with 44 additions and 95 deletions
|
@ -16,8 +16,7 @@ Author:
|
|||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef OBJ_REF_H_
|
||||
#define OBJ_REF_H_
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
Smart pointer for T objects.
|
||||
|
@ -53,7 +52,7 @@ public:
|
|||
inc_ref();
|
||||
}
|
||||
|
||||
obj_ref(obj_ref && other) : m_obj(nullptr), m_manager(other.m_manager) {
|
||||
obj_ref(obj_ref && other) noexcept : m_obj(nullptr), m_manager(other.m_manager) {
|
||||
std::swap(m_obj, other.m_obj);
|
||||
}
|
||||
|
||||
|
@ -146,5 +145,3 @@ inline void dec_range_ref(IT const & begin, IT const & end, TManager & m) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* OBJ_REF_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue