hack for clang compiling on windows, as it can't tell that calling ::RaiseException will prevent the function from returning. (nw)

This commit is contained in:
smf- 2016-09-16 14:46:24 +01:00
parent 3928db3a23
commit 31eed6d49f

View File

@ -20,6 +20,7 @@ namespace Microsoft {
inline void DECLSPEC_NORETURN RaiseException(HRESULT hr, DWORD flags = EXCEPTION_NONCONTINUABLE) throw() {
::RaiseException(static_cast<DWORD>(hr), flags, 0, NULL);
throw std::exception();
}
template <bool b, typename T = void>