mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +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 {
|
||||
}
|
||||
|
||||
// FIXME This throws errors in MSVC but is required in clang
|
||||
#ifndef _MSC_VER
|
||||
void unhandled_exception() {
|
||||
GTEST_FATAL_FAILURE_("Unhandled async exception!");
|
||||
}
|
||||
#endif // _MSC_VER
|
||||
|
||||
suspend_never initial_suspend() noexcept {
|
||||
return {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user