mirror of
https://github.com/Naios/continuable.git
synced 2026-02-09 11:16:40 +08:00
Fix a coroutine MSVC/Clang incompatibility
This commit is contained in:
parent
3a50657a17
commit
4c76a11f45
@ -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 {};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user