Skip to content

Commit

Permalink
Update support-lib/cpp/Future.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
techleeksnap authored Jul 26, 2024
1 parent 987cd72 commit ce6add1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support-lib/cpp/Future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class Future {
}
template <typename P>
bool await_suspend(detail::CoroutineHandle<P> finished) const noexcept {
static_assert(std::is_base_of_v<PromiseTypeBase, P>);
static_assert(std::is_convertible_v<P*, PromiseTypeBase*>);
auto& promise_type = finished.promise();
if (*promise_type._result) {
if constexpr (std::is_void_v<T>) {
Expand Down

0 comments on commit ce6add1

Please sign in to comment.