Skip to content

Commit 2e19f7f

Browse files
authored
Remove deprecated throw() (#684)
`throw()` is deprecated and has been since C++11. Replace with `noexcept`.
1 parent a355fbf commit 2e19f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ struct Token {
1919
class TokenizeError : public exception {
2020
public:
2121
explicit TokenizeError(const string& msg = "tokenize error"): msg_(msg) { }
22-
~TokenizeError() throw() {}
23-
virtual const char* what() const throw() {
22+
~TokenizeError() noexcept {}
23+
virtual const char* what() const noexcept {
2424
return msg_.c_str();
2525
}
2626
private:

0 commit comments

Comments
 (0)