Fix fmt::throw_exception destructor v2

Remove destructor for MSVC.
This commit is contained in:
Nekotekina 2021-01-18 20:30:29 +03:00
parent 8a2a76da1e
commit 6cf0c5cd6d

View File

@ -297,17 +297,15 @@ namespace fmt
raw_throw_exception({line, col, file, func}, reinterpret_cast<const char*>(fmt), type_list, fmt_args_t<Args...>{fmt_unveil<Args>::get(args)...});
}
#ifdef _DEBUG
#ifndef _MSC_VER
#if defined(_DEBUG)
[[noreturn]] ~throw_exception()
{
#ifdef _MSC_VER
__assume(false);
#else
__builtin_unreachable();
#endif
}
#else
[[noreturn]] ~throw_exception();
#endif
#endif
};