mirror of
https://github.com/Z3Prover/z3
synced 2026-04-29 15:23:37 +00:00
remove some allocs from exceptions
This commit is contained in:
parent
8791f61aa7
commit
cef17c22a1
19 changed files with 36 additions and 40 deletions
|
|
@ -26,7 +26,7 @@ class tactic_exception : public z3_exception {
|
|||
protected:
|
||||
std::string m_msg;
|
||||
public:
|
||||
tactic_exception(char const * msg):m_msg(msg) {}
|
||||
tactic_exception(std::string && msg) : m_msg(std::move(msg)) {}
|
||||
~tactic_exception() override {}
|
||||
char const * msg() const override { return m_msg.c_str(); }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue