Skip to content

Commit 98b4459

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix deprecated dynamic exception in fbpcf/exception/exceptions.h +1 (#541)
Summary: Pull Request resolved: #541 LLVM has detected a violation of `-Wdeprecated-dynamic-exception-spec`. Dynamic exceptions were removed in C++17. This diff fixes the deprecated instance(s). See [Dynamic exception specification](https://en.cppreference.com/w/cpp/language/except_spec) and [noexcept specifier](https://en.cppreference.com/w/cpp/language/noexcept_spec). Reviewed By: palmje Differential Revision: D58182139 fbshipit-source-id: 23604f1d2732de4f94bf0b4bc157a2fe0111ba3b
1 parent 18a85f6 commit 98b4459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fbpcf/exception/exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class ConnectionError : virtual public std::exception {
169169
public:
170170
explicit ConnectionError(std::string msg) : msg_{msg} {}
171171

172-
const char* what() const throw() override {
172+
const char* what() const noexcept override {
173173
return msg_.c_str();
174174
}
175175

0 commit comments

Comments
 (0)