From 8a7e2ee86a401014d8944bec49ab59935e5c8943 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Wed, 28 Feb 2018 11:49:13 +0300 Subject: [PATCH] Using noexcept instead of throw in RootException. --- base/exception.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/base/exception.hpp b/base/exception.hpp index 11617d7ae2..d716073197 100644 --- a/base/exception.hpp +++ b/base/exception.hpp @@ -11,9 +11,7 @@ class RootException : public std::exception public: RootException(char const * what, std::string const & msg); - virtual ~RootException() throw() - { - } + virtual ~RootException() noexcept = default; std::string const & Msg() const { return m_msg; }