You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2021/04/29 06:57:59 UTC
[thrift] branch master updated: THRIFT-5244 Dynamic exception
specifications are deprecated in C++11[-Wdeprecated] Client: cpp Patch:
Zezeng Wang
This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new c821d25 THRIFT-5244 Dynamic exception specifications are deprecated in C++11[-Wdeprecated] Client: cpp Patch: Zezeng Wang
c821d25 is described below
commit c821d250976c690ebc45ae4f769d51951c0bfda4
Author: zeshuai007 <51...@qq.com>
AuthorDate: Fri Aug 14 15:44:02 2020 +0800
THRIFT-5244 Dynamic exception specifications are deprecated in C++11[-Wdeprecated]
Client: cpp
Patch: Zezeng Wang
This closes #2217
---
lib/c_glib/test/testthrifttestclient.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/c_glib/test/testthrifttestclient.cpp b/lib/c_glib/test/testthrifttestclient.cpp
index 5732996..b8d9309 100644
--- a/lib/c_glib/test/testthrifttestclient.cpp
+++ b/lib/c_glib/test/testthrifttestclient.cpp
@@ -291,7 +291,7 @@ class TestHandler : public ThriftTestIf {
}
void testException(const std::string &arg)
- throw(Xception, apache::thrift::TException) override
+ noexcept(false) override
{
cout << "[C -> C++] testException(" << arg << ")" << endl;
if (arg.compare("Xception") == 0) {
@@ -309,7 +309,7 @@ class TestHandler : public ThriftTestIf {
}
}
- void testMultiException(Xtruct &result, const std::string &arg0, const std::string &arg1) throw(Xception, Xception2) override {
+ void testMultiException(Xtruct &result, const std::string &arg0, const std::string &arg1) noexcept(false) override {
cout << "[C -> C++] testMultiException(" << arg0 << ", " << arg1 << ")" << endl;