diff options
Diffstat (limited to 'src/exceptions.h')
-rw-r--r-- | src/exceptions.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index a8a7db74c..c54307653 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -27,7 +27,8 @@ class BaseException : public std::exception { public: BaseException(const std::string &s) throw(): m_s(s) {} - ~BaseException() throw() {} + ~BaseException() throw() = default; + virtual const char * what() const throw() { return m_s.c_str(); |