diff options
author | redfish <redfish@galactica.pw> | 2016-05-18 00:57:17 -0400 |
---|---|---|
committer | redfish <redfish@galactica.pw> | 2016-05-18 01:02:21 -0400 |
commit | 68987416adb755337714964b38db3ada08ec2203 (patch) | |
tree | 5b9f0eb44a1b21d2152ed7e44e5e5249287e3cb0 /src/p2p/connection_basic.cpp | |
parent | crypto: slow-hash: fix misleading indent (diff) | |
download | monero-68987416adb755337714964b38db3ada08ec2203.tar.xz |
src: p2p: add exception spec to throwing destructors
The destructors get a noexcept(true) spec by default, but these
destructors in fact throw exceptions. An alternative fix might be to not
throw (most if not all of these throws are non-essential
error-reporting/logging).
Diffstat (limited to 'src/p2p/connection_basic.cpp')
-rw-r--r-- | src/p2p/connection_basic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/connection_basic.cpp b/src/p2p/connection_basic.cpp index c0b73bc3e..22c5ef772 100644 --- a/src/p2p/connection_basic.cpp +++ b/src/p2p/connection_basic.cpp @@ -167,7 +167,7 @@ connection_basic::connection_basic(boost::asio::io_service& io_service, std::ato //boost::filesystem::create_directories("log/dr-monero/net/"); } -connection_basic::~connection_basic() { +connection_basic::~connection_basic() noexcept(false) { string remote_addr_str = "?"; m_ref_sock_count--; try { remote_addr_str = socket_.remote_endpoint().address().to_string(); } catch(...){} ; |