mirror of
https://github.com/monero-project/monero.git
synced 2025-08-09 23:42:27 -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
|
@ -88,7 +88,7 @@ PRAGMA_WARNING_DISABLE_VS(4355)
|
|||
PRAGMA_WARNING_DISABLE_VS(4355)
|
||||
//---------------------------------------------------------------------------------
|
||||
template<class t_protocol_handler>
|
||||
connection<t_protocol_handler>::~connection()
|
||||
connection<t_protocol_handler>::~connection() noexcept(false)
|
||||
{
|
||||
if(!m_was_shutdown)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue