在 2020/4/6 5:04, Stephen Kitt 写道:
> The function is defined as follows:
>
>
> so actually calling it with a failed HRESULT crashes the program. I
> think the empty exception specification should simply be dropped.
>
> See https://bugs.debian.org/816427
>
> Reported-by: Sam Morris
> Signed-of
The function is defined as follows:
namespace _com_util {
inline void CheckError(HRESULT hr) throw() {
if(FAILED(hr)) { _com_issue_error(hr); }
}
}
but _com_issue_error is defined as:
inline void _com_issue_error(HRESULT hr) {
#if __EXCEPTIONS
throw _c