Fix a coroutine MSVC/Clang incompatibility

This commit is contained in:
Denis Blank 2018-01-28 22:39:53 +01:00
parent 3a50657a17
commit 4c76a11f45

View File

@ -41,9 +41,13 @@ struct coroutine_traits<void, T...> {
void set_exception(exception_ptr const&) noexcept { void set_exception(exception_ptr const&) noexcept {
} }
// FIXME This throws errors in MSVC but is required in clang
#ifndef _MSC_VER
void unhandled_exception() { void unhandled_exception() {
GTEST_FATAL_FAILURE_("Unhandled async exception!"); GTEST_FATAL_FAILURE_("Unhandled async exception!");
} }
#endif // _MSC_VER
suspend_never initial_suspend() noexcept { suspend_never initial_suspend() noexcept {
return {}; return {};