mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
add noexcept for signature compatibility
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
75e46778fa
commit
42894f729a
3 changed files with 6 additions and 6 deletions
|
@ -28,14 +28,14 @@ class ex1 : public ex {
|
|||
char const * m_msg;
|
||||
public:
|
||||
ex1(char const * m):m_msg(m) {}
|
||||
char const * what() const override { return m_msg; }
|
||||
char const * what() const noexcept override { return m_msg; }
|
||||
};
|
||||
|
||||
class ex2 : public ex {
|
||||
std::string m_msg;
|
||||
public:
|
||||
ex2(char const * m):m_msg(m) {}
|
||||
char const * what() const override { return m_msg.c_str(); }
|
||||
char const * what() const noexcept override { return m_msg.c_str(); }
|
||||
};
|
||||
|
||||
static void th() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue