3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

Use noexcept more. (#7058)

This commit is contained in:
Bruce Mitchener 2023-12-16 19:14:53 +07:00 committed by GitHub
parent b44ab2f620
commit 50e0fd3ba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 97 additions and 112 deletions

View file

@ -238,7 +238,7 @@ interval & interval::operator=(interval const & other) {
return *this;
}
interval & interval::operator=(interval && other) {
interval & interval::operator=(interval && other) noexcept {
SASSERT(&m_manager == &other.m_manager);
m_lower = std::move(other.m_lower);
m_upper = std::move(other.m_upper);

View file

@ -92,7 +92,7 @@ public:
rational const & get_lower_value() const { SASSERT(!minus_infinity()); return m_lower.to_rational(); }
rational const & get_upper_value() const { SASSERT(!plus_infinity()); return m_upper.to_rational(); }
old_interval & operator=(old_interval const & other);
old_interval & operator=(old_interval && other);
old_interval & operator=(old_interval && other) noexcept;
old_interval & operator+=(old_interval const & other);
old_interval & operator-=(old_interval const & other);
old_interval & operator*=(old_interval const & other);