Replace dynamic exception specifications by C++11 noexcept
This commit is contained in:
parent
98902c1e88
commit
897b1154b2
@ -112,7 +112,7 @@ class Exception : public std::runtime_error {
|
||||
public:
|
||||
Exception(const Mark& mark_, const std::string& msg_)
|
||||
: std::runtime_error(build_what(mark_, msg_)), mark(mark_), msg(msg_) {}
|
||||
virtual ~Exception() throw() {}
|
||||
virtual ~Exception() noexcept {}
|
||||
|
||||
Mark mark;
|
||||
std::string msg;
|
||||
@ -163,7 +163,7 @@ class TypedKeyNotFound : public KeyNotFound {
|
||||
public:
|
||||
TypedKeyNotFound(const Mark& mark_, const T& key_)
|
||||
: KeyNotFound(mark_, key_), key(key_) {}
|
||||
virtual ~TypedKeyNotFound() throw() {}
|
||||
virtual ~TypedKeyNotFound() noexcept {}
|
||||
|
||||
T key;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user