Skip to content

Commit a90e3d0

Browse files
committed
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".
1 parent 6560f39 commit a90e3d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Exception.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ namespace chesspp
1010
{
1111
using std::exception::what;
1212
public:
13-
exception() throw() {}
14-
virtual ~exception() throw() {};
15-
exception(const exception &) throw() {}
13+
exception() {}
14+
virtual ~exception() {};
15+
exception(const exception &) {}
1616

17-
exception(const std::string &_e) throw() : e(_e) {}
17+
exception(const std::string &_e) : e(_e) {}
1818
virtual const char *what() { return e.c_str(); }
1919

2020
private:
2121
std::string e;
2222
};
2323
}
2424

25-
#endif
25+
#endif

0 commit comments

Comments
 (0)