From 68ac936869b85c74118b63aae865d7fcba7f9cfa Mon Sep 17 00:00:00 2001 From: Florian Franzmann Date: Sun, 1 Dec 2019 18:40:23 +0100 Subject: [PATCH 02/35] Cleanup: add noexcept(false) to dtor This avoids a compile error with clang. --- include/shared_res.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/shared_res.h b/include/shared_res.h index 9a67692..2f6bc0b 100644 --- a/include/shared_res.h +++ b/include/shared_res.h @@ -19,7 +19,7 @@ public: inline C* getRes(){ return res; } - inline virtual ~shared_cnt_obj_pair(){ + inline virtual ~shared_cnt_obj_pair() noexcept(false) { if(refCount) throw std::logic_error("resource is busy"); delete res; -- 2.24.0 .