From 374a4085351b7360c6e172277faf7513e81f7f71 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Wed, 5 Jun 2024 03:10:31 -0700 Subject: [PATCH] Fix deprecated dynamic exception in fbpcf/exception/exceptions.h +1 Summary: 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). Differential Revision: D58182139 --- fbpcf/exception/exceptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbpcf/exception/exceptions.h b/fbpcf/exception/exceptions.h index de4bc589..db1cfb1e 100644 --- a/fbpcf/exception/exceptions.h +++ b/fbpcf/exception/exceptions.h @@ -169,7 +169,7 @@ class ConnectionError : virtual public std::exception { public: explicit ConnectionError(std::string msg) : msg_{msg} {} - const char* what() const throw() override { + const char* what() const noexcept override { return msg_.c_str(); }