Skip to content

Commit

Permalink
Remove deprecated throw() (#684)
Browse files Browse the repository at this point in the history
`throw()` is deprecated and has been since C++11. Replace with `noexcept`.
  • Loading branch information
r-barnes committed May 22, 2024
1 parent a355fbf commit 2e19f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ struct Token {
class TokenizeError : public exception {
public:
explicit TokenizeError(const string& msg = "tokenize error"): msg_(msg) { }
~TokenizeError() throw() {}
virtual const char* what() const throw() {
~TokenizeError() noexcept {}
virtual const char* what() const noexcept {
return msg_.c_str();
}
private:
Expand Down

0 comments on commit 2e19f7f

Please sign in to comment.