Replace dynamic exception specifications by C++11 noexcept

This commit is contained in:
Vincent Cogne 2016-05-17 08:41:44 +02:00
parent 98902c1e88
commit 897b1154b2

View File

@ -112,7 +112,7 @@ class Exception : public std::runtime_error {
public: public:
Exception(const Mark& mark_, const std::string& msg_) Exception(const Mark& mark_, const std::string& msg_)
: std::runtime_error(build_what(mark_, msg_)), mark(mark_), msg(msg_) {} : std::runtime_error(build_what(mark_, msg_)), mark(mark_), msg(msg_) {}
virtual ~Exception() throw() {} virtual ~Exception() noexcept {}
Mark mark; Mark mark;
std::string msg; std::string msg;
@ -163,7 +163,7 @@ class TypedKeyNotFound : public KeyNotFound {
public: public:
TypedKeyNotFound(const Mark& mark_, const T& key_) TypedKeyNotFound(const Mark& mark_, const T& key_)
: KeyNotFound(mark_, key_), key(key_) {} : KeyNotFound(mark_, key_), key(key_) {}
virtual ~TypedKeyNotFound() throw() {} virtual ~TypedKeyNotFound() noexcept {}
T key; T key;
}; };