From a90e3d05caf426c200f644207db7a595b0f322e6 Mon Sep 17 00:00:00 2001 From: Interlocked Date: Mon, 15 Apr 2013 22:50:21 +0200 Subject: [PATCH] Update Exception.h Removed "throw( )" specifiers. Such specifiers are redundant as the compiler cannot guarantee that functions with the "throw( )" specifier will not throw exceptions. If using C++11, use "noexcept". --- src/Exception.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Exception.h b/src/Exception.h index e83dac4..eef0569 100644 --- a/src/Exception.h +++ b/src/Exception.h @@ -10,11 +10,11 @@ namespace chesspp { using std::exception::what; public: - exception() throw() {} - virtual ~exception() throw() {}; - exception(const exception &) throw() {} + exception() {} + virtual ~exception() {}; + exception(const exception &) {} - exception(const std::string &_e) throw() : e(_e) {} + exception(const std::string &_e) : e(_e) {} virtual const char *what() { return e.c_str(); } private: @@ -22,4 +22,4 @@ namespace chesspp }; } -#endif \ No newline at end of file +#endif