From: Mikko Rasa Date: Thu, 27 Sep 2012 22:06:53 +0000 (+0300) Subject: Add no-throw destructors to exception classes that were lacking one X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=933356a36607f5d4480172e285071d4d7dfc5a7b;p=libs%2Fcore.git Add no-throw destructors to exception classes that were lacking one --- diff --git a/source/core/maputils.h b/source/core/maputils.h index 1b36c69..9548714 100644 --- a/source/core/maputils.h +++ b/source/core/maputils.h @@ -10,6 +10,7 @@ class key_error: public std::runtime_error { public: key_error(const std::type_info &); + ~key_error() throw() { } }; diff --git a/source/io/file.h b/source/io/file.h index 5fb0353..90a1041 100644 --- a/source/io/file.h +++ b/source/io/file.h @@ -15,12 +15,14 @@ class file_not_found: public std::runtime_error { public: file_not_found(const std::string &fn): std::runtime_error(fn) { } + ~file_not_found() throw() { } }; class file_already_exists: public std::runtime_error { public: file_already_exists(const std::string &fn): std::runtime_error(fn) { } + ~file_already_exists() throw() { } }; diff --git a/source/io/mode.h b/source/io/mode.h index 5500dff..706609f 100644 --- a/source/io/mode.h +++ b/source/io/mode.h @@ -30,6 +30,7 @@ class invalid_access: public std::logic_error { public: invalid_access(Mode); + ~invalid_access() throw() { } }; } // namespace IO