Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Oct 28, 2024
1 parent 0840623 commit 9135bab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/ucoro/awaitable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ namespace ucoro
await_transformer<T>::await_transform(std::move(a));
};

template<typename T>
struct is_not_awaitable : std::false_type{};

} // namespace concepts

Expand Down Expand Up @@ -361,7 +363,7 @@ namespace ucoro
}
else
{
static_assert(0, "co_await must be called on an awaitable type");
static_assert(concepts::is_not_awaitable<A>::value, "co_await must be called on an awaitable type");
}
}

Expand Down

0 comments on commit 9135bab

Please sign in to comment.