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/data_logger.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/data_logger.cpp')
-rw-r--r-- | src/p2p/data_logger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/data_logger.cpp b/src/p2p/data_logger.cpp index ca0726c5f..fe54aef63 100644 --- a/src/p2p/data_logger.cpp +++ b/src/p2p/data_logger.cpp @@ -103,7 +103,7 @@ namespace net_utils _info_c("dbg/data","Data logger constructed"); } - data_logger::~data_logger() { + data_logger::~data_logger() noexcept(false) { _note_c("dbg/data","Destructor of the data logger"); { boost::lock_guard<boost::mutex> lock(mMutex); |