From ea17d1f6c77e490f613b110004655c63b28c4821 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 2 Jan 2015 17:35:53 +0100 Subject: [PATCH] dynamic exception specifications are deprecated, use 'noexcept' instead --- Util/OSRMException.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Util/OSRMException.h b/Util/OSRMException.h index f4f4290e3..5e0a11401 100644 --- a/Util/OSRMException.h +++ b/Util/OSRMException.h @@ -36,10 +36,10 @@ class OSRMException : public std::exception public: explicit OSRMException(const char *message) : message(message) {} explicit OSRMException(const std::string &message) : message(message) {} - virtual ~OSRMException() throw() {} + virtual ~OSRMException() noexcept {} private: - virtual const char *what() const throw() { return message.c_str(); } + virtual const char *what() const noexcept { return message.c_str(); } const std::string message; };