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

add noexcept

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-11-04 11:21:55 -08:00
parent 42894f729a
commit 407bad3693
4 changed files with 8 additions and 8 deletions

View file

@ -29,7 +29,7 @@ Revision History:
class overflow_exception : public z3_exception {
char const* what() const override { return "checked_int64 overflow/underflow"; }
char const* what() const noexcept override { return "checked_int64 overflow/underflow"; }
};
template<bool CHECK>

View file

@ -182,15 +182,15 @@ public:
static bool field() { return true; }
class exception : public z3_exception {
char const * what() const override { return "multi-precision floating point (mpff) exception"; }
char const * what() const noexcept override { return "multi-precision floating point (mpff) exception"; }
};
class overflow_exception : public exception {
char const * what() const override { return "multi-precision floating point (mpff) overflow"; }
char const * what() const noexcept override { return "multi-precision floating point (mpff) overflow"; }
};
class div0_exception : public exception {
char const * what() const override { return "multi-precision floating point (mpff) division by zero"; }
char const * what() const noexcept override { return "multi-precision floating point (mpff) division by zero"; }
};
mpff_manager(unsigned prec = 2, unsigned initial_capacity = 1024);

View file

@ -129,15 +129,15 @@ public:
static bool field() { return true; }
class exception : public z3_exception {
char const * what() const override { return "multi-precision fixed point (mpfx) exception"; }
char const * what() const noexcept override { return "multi-precision fixed point (mpfx) exception"; }
};
class overflow_exception : public exception {
char const * what() const override { return "multi-precision fixed point (mpfx) overflow"; }
char const * what() const noexcept override { return "multi-precision fixed point (mpfx) overflow"; }
};
class div0_exception : public exception {
char const * what() const override { return "multi-precision fixed point (mpfx) division by zero"; }
char const * what() const noexcept override { return "multi-precision fixed point (mpfx) division by zero"; }
};
mpfx_manager(unsigned int_sz = 2, unsigned frac_sz = 1, unsigned initial_capacity = 1024);