-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
试试 review 功能 #15
试试 review 功能 #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看起来没有问题
@@ -172,7 +172,7 @@ namespace ucoro | |||
|
|||
template <typename A> | |||
requires(detail::is_awaiter_v<std::decay_t<A>>) | |||
auto await_transform(A&& awaiter) const | |||
A&& await_transform(A&& awaiter) const | |||
{ | |||
static_assert(std::is_rvalue_reference_v<decltype(awaiter)>, "co_await must be used on rvalue"); | |||
return std::forward<A>(awaiter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该直接 std::move 可能会更好?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move 和 forward , 最后都是 static_cast<A&&> 吧。
cf2a55b
to
7d7d625
Compare
status report 这个看来永不起来。 |
No description provided.