From 933356a36607f5d4480172e285071d4d7dfc5a7b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 28 Sep 2012 01:06:53 +0300 Subject: [PATCH 1/1] Add no-throw destructors to exception classes that were lacking one --- source/core/maputils.h | 1 + source/io/file.h | 2 ++ source/io/mode.h | 1 + 3 files changed, 4 insertions(+) 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 -- 2.43.0