mirror of
https://github.com/monero-project/monero.git
synced 2025-07-24 22:05:23 -04:00
contrib: epee: 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).
This commit is contained in:
parent
68987416ad
commit
c2d7300d2e
3 changed files with 3 additions and 3 deletions
|
@ -119,7 +119,7 @@ namespace net_utils
|
|||
virtual bool add_ref()=0;
|
||||
virtual bool release()=0;
|
||||
protected:
|
||||
virtual ~i_service_endpoint(){}
|
||||
virtual ~i_service_endpoint() noexcept(false) {}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue