fixed: missing virtual dtor for XArch* classes
This commit is contained in:
parent
e34e39a41c
commit
3e84372a14
|
@ -55,6 +55,9 @@ string for that error code.
|
||||||
*/
|
*/
|
||||||
class XArchEval {
|
class XArchEval {
|
||||||
public:
|
public:
|
||||||
|
XArchEval() { }
|
||||||
|
virtual ~XArchEval() _NOEXCEPT { }
|
||||||
|
|
||||||
virtual std::string eval() const = 0;
|
virtual std::string eval() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -63,7 +66,7 @@ class XArch : public std::runtime_error {
|
||||||
public:
|
public:
|
||||||
XArch(XArchEval* adopted) : std::runtime_error(adopted->eval()) { delete adopted; }
|
XArch(XArchEval* adopted) : std::runtime_error(adopted->eval()) { delete adopted; }
|
||||||
XArch(const std::string& msg) : std::runtime_error(msg) { }
|
XArch(const std::string& msg) : std::runtime_error(msg) { }
|
||||||
~XArch() _NOEXCEPT { }
|
virtual ~XArch() _NOEXCEPT { }
|
||||||
};
|
};
|
||||||
|
|
||||||
// Macro to declare XArch derived types
|
// Macro to declare XArch derived types
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
class XArchEvalUnix : public XArchEval {
|
class XArchEvalUnix : public XArchEval {
|
||||||
public:
|
public:
|
||||||
XArchEvalUnix(int error) : m_error(error) { }
|
XArchEvalUnix(int error) : m_error(error) { }
|
||||||
virtual ~XArchEvalUnix() { }
|
virtual ~XArchEvalUnix() _NOEXCEPT { }
|
||||||
|
|
||||||
virtual std::string eval() const;
|
virtual std::string eval() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue