aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/data_logger.hpp
diff options
context:
space:
mode:
authorredfish <redfish@galactica.pw>2016-05-18 00:57:17 -0400
committerredfish <redfish@galactica.pw>2016-05-18 01:02:21 -0400
commit68987416adb755337714964b38db3ada08ec2203 (patch)
tree5b9f0eb44a1b21d2152ed7e44e5e5249287e3cb0 /src/p2p/data_logger.hpp
parentcrypto: slow-hash: fix misleading indent (diff)
downloadmonero-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 '')
-rw-r--r--src/p2p/data_logger.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/data_logger.hpp b/src/p2p/data_logger.hpp
index 148afc0ab..278d08bfc 100644
--- a/src/p2p/data_logger.hpp
+++ b/src/p2p/data_logger.hpp
@@ -55,7 +55,7 @@ enum class data_logger_state { state_before_init, state_during_init, state_ready
public:
static data_logger &get_instance(); ///< singleton
static void kill_instance(); ///< call this before ending main to allow more gracefull shutdown of the main singleton and it's background thread
- ~data_logger(); ///< destr, will be called when singleton is killed when global m_obj dies. will kill theads etc
+ ~data_logger() noexcept(false); ///< destr, will be called when singleton is killed when global m_obj dies. will kill theads etc
private:
data_logger(); ///< constructor is private, use only via singleton get_instance