Skip to content

Commit

Permalink
fix stupid appleClang
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Oct 28, 2024
1 parent d97d0a2 commit 4ab020b
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 @@ -129,6 +129,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 @@ -358,7 +360,7 @@ namespace ucoro
}
else
{
static_assert(0, "co_await must been used on an awaitable");
static_assert(concepts::is_not_awaitable<A>::value, "co_await must be called on an awaitable type");
}
}

Expand Down

0 comments on commit 4ab020b

Please sign in to comment.