Replies: 1 comment
-
如果我没有记错,如果改成 &&,那么通常你需要同时提供一个 const & 的重载。否则调用方不能用 lvalue 对象当成参数。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
muduo/muduo/net/Channel.h
Line 43 in 90920bb
这里是否依旧会有拷贝构造,将参数改成&&并且由外部来std::move是否更优?
Beta Was this translation helpful? Give feedback.
All reactions