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 {
|
||||
public:
|
||||
XArchEval() { }
|
||||
virtual ~XArchEval() _NOEXCEPT { }
|
||||
|
||||
virtual std::string eval() const = 0;
|
||||
};
|
||||
|
||||
|
@ -63,7 +66,7 @@ class XArch : public std::runtime_error {
|
|||
public:
|
||||
XArch(XArchEval* adopted) : std::runtime_error(adopted->eval()) { delete adopted; }
|
||||
XArch(const std::string& msg) : std::runtime_error(msg) { }
|
||||
~XArch() _NOEXCEPT { }
|
||||
virtual ~XArch() _NOEXCEPT { }
|
||||
};
|
||||
|
||||
// Macro to declare XArch derived types
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
class XArchEvalUnix : public XArchEval {
|
||||
public:
|
||||
XArchEvalUnix(int error) : m_error(error) { }
|
||||
virtual ~XArchEvalUnix() { }
|
||||
virtual ~XArchEvalUnix() _NOEXCEPT { }
|
||||
|
||||
virtual std::string eval() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue