On 02.10.2021 11:14, scan-ad...@coverity.com wrote:
** CID 1485150:  Error handling issues  (UNCAUGHT_EXCEPT)
/usr/include/c++/9/optional: 254 in 
std::_Optional_payload_base<SwContentNotify>::_M_destroy()()


________________________________________________________________________________________________________
*** CID 1485150:  Error handling issues  (UNCAUGHT_EXCEPT)
/usr/include/c++/9/optional: 254 in 
std::_Optional_payload_base<SwContentNotify>::_M_destroy()()
248               ::new ((void *) std::__addressof(this->_M_payload))
249                 _Stored_type(std::forward<_Args>(__args)...);
250               this->_M_engaged = true;
251             }
252
253           constexpr void
     CID 1485150:  Error handling issues  (UNCAUGHT_EXCEPT)
     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw 
list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() 
which usually calls terminate().
254           _M_destroy() noexcept
255           {
256             _M_engaged = false;
257             _M_payload._M_value.~_Stored_type();
258           }
259

Interesting, why some implementation declares optional's dtor noexcept? [optional.dtor] doesn't mention any 'noexcept' specification... at least in n4835.pdf.


--
Best regards,
Mike Kaganski

Reply via email to