lizhanhui commented on code in PR #441:
URL: 
https://github.com/apache/rocketmq-client-cpp/pull/441#discussion_r954422775


##########
src/protocol/RemotingCommand.cpp:
##########
@@ -302,6 +302,10 @@ void RemotingCommand::setMsgBody(const string& body) {
   m_msgBody = body;
 }
 
+void RemotingCommand::moveMsgBody(std::string&& body) {

Review Comment:
   Why not provide an overload method of SetBody, accepting a r-value reference 
to string 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to