mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 03:27:52 +00:00
Use noexcept
more. (#7058)
This commit is contained in:
parent
b44ab2f620
commit
50e0fd3ba6
69 changed files with 97 additions and 112 deletions
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
struct eq_proc { bool operator()(rational const& r1, rational const& r2) const { return r1 == r2; } };
|
||||
|
||||
void swap(rational & n) { m().swap(m_val, n.m_val); }
|
||||
void swap(rational & n) noexcept { m().swap(m_val, n.m_val); }
|
||||
|
||||
std::string to_string() const { return m().to_string(m_val); }
|
||||
|
||||
|
@ -671,6 +671,6 @@ inline rational gcd(rational const & r1, rational const & r2, rational & a, rati
|
|||
return result;
|
||||
}
|
||||
|
||||
inline void swap(rational& r1, rational& r2) {
|
||||
inline void swap(rational& r1, rational& r2) noexcept {
|
||||
r1.swap(r2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue