Skip to content

Commit

Permalink
promsietype 的 local_ 类型是 std::shared_ptr<std::any>, 修正之
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Oct 14, 2024
1 parent 405b1ef commit 313f4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ucoro/awaitable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace ucoro
// 用于判定 T 是否是一个 awaitable<>::promise_type 的类型, 即: 拥有 local_ 成员。
template <typename T>
concept is_awaitable_promise_type_v = requires (T a){
{ a.local_ } -> std::convertible_to<std::any> ;
{ a.local_ } -> std::convertible_to<std::shared_ptr<std::any>> ;
};
} // namespace detail

Expand Down

0 comments on commit 313f4bd

Please sign in to comment.