mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 08:28:44 +00:00
Use noexcept
more. (#7058)
This commit is contained in:
parent
b44ab2f620
commit
50e0fd3ba6
69 changed files with 97 additions and 112 deletions
|
@ -265,7 +265,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
scoped_ptr& operator=(scoped_ptr&& other) {
|
||||
scoped_ptr& operator=(scoped_ptr&& other) noexcept {
|
||||
*this = other.detach();
|
||||
return *this;
|
||||
};
|
||||
|
@ -276,7 +276,7 @@ public:
|
|||
return tmp;
|
||||
}
|
||||
|
||||
void swap(scoped_ptr & p) {
|
||||
void swap(scoped_ptr & p) noexcept {
|
||||
std::swap(m_ptr, p.m_ptr);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue