Skip to content

Commit

Permalink
throw() -> noexcept (#869)
Browse files Browse the repository at this point in the history
`throw()` was deprecated in C++11 and removed in C++17. `noexcept` is the appropriate fix.
  • Loading branch information
r-barnes authored Jul 16, 2024
1 parent 736ddb0 commit 7f41c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CPP/Clipper2Lib/include/clipper2/clipper.core.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Clipper2Lib
public:
explicit Clipper2Exception(const char* description) :
m_descr(description) {}
virtual const char* what() const throw() override { return m_descr.c_str(); }
virtual const char* what() const noexcept override { return m_descr.c_str(); }
private:
std::string m_descr;
};
Expand Down

0 comments on commit 7f41c18

Please sign in to comment.