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.hpp | |
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.hpp')
-rw-r--r-- | src/p2p/connection_basic.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/connection_basic.hpp b/src/p2p/connection_basic.hpp index 8be798735..5452fa6fb 100644 --- a/src/p2p/connection_basic.hpp +++ b/src/p2p/connection_basic.hpp @@ -103,7 +103,7 @@ class connection_basic { // not-templated base class for rapid developmet of som // first counter is the ++/-- count of current sockets, the other socket_number is only-increasing ++ number generator connection_basic(boost::asio::io_service& io_service, std::atomic<long> &ref_sock_count, std::atomic<long> &sock_number); - virtual ~connection_basic(); + virtual ~connection_basic() noexcept(false); // various handlers to be called from connection class: void do_send_handler_write(const void * ptr , size_t cb); |