fixed: missing virtual dtor for XArch* classes

This commit is contained in:
Nick Bolton 2014-03-20 13:41:23 +00:00
parent e34e39a41c
commit 3e84372a14
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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;