mirror of
https://github.com/Z3Prover/z3
synced 2026-07-23 07:22:33 +00:00
Use noexcept more. (#7058)
This commit is contained in:
parent
b44ab2f620
commit
50e0fd3ba6
69 changed files with 97 additions and 112 deletions
|
|
@ -93,7 +93,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
obj_ref & operator=(obj_ref && n) {
|
||||
obj_ref & operator=(obj_ref && n) noexcept {
|
||||
SASSERT(&m_manager == &n.m_manager);
|
||||
std::swap(m_obj, n.m_obj);
|
||||
n.reset();
|
||||
|
|
@ -105,7 +105,7 @@ public:
|
|||
m_obj = nullptr;
|
||||
}
|
||||
|
||||
void swap(obj_ref & n) {
|
||||
void swap(obj_ref & n) noexcept {
|
||||
std::swap(m_obj, n.m_obj);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue