Add no-throw destructors to exception classes that were lacking one
authorMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 22:06:53 +0000 (01:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 22:06:53 +0000 (01:06 +0300)
source/core/maputils.h
source/io/file.h
source/io/mode.h

index 1b36c69569b6973992d381c7d39060e412341c89..9548714658d806fad41614357bc0e60fa8444cdf 100644 (file)
@@ -10,6 +10,7 @@ class key_error: public std::runtime_error
 {
 public:
        key_error(const std::type_info &);
+       ~key_error() throw() { }
 };
 
 
index 5fb0353211b2e99d23384afa2924e87ee78acc10..90a1041ccda6520db5386b724f43fe6e936bfe85 100644 (file)
@@ -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() { }
 };
 
 
index 5500dff613bc5e6a857f66bc9f9e7e4090be9893..706609f03f4bb7c5c8b40c111b1da11f02d4581d 100644 (file)
@@ -30,6 +30,7 @@ class invalid_access: public std::logic_error
 {
 public:
        invalid_access(Mode);
+       ~invalid_access() throw() { }
 };
 
 } // namespace IO