You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/07/03 10:15:49 UTC
[GitHub] [rocketmq-client-cpp] SRC-xiaojin commented on pull request #429: pass by reference
SRC-xiaojin commented on PR #429:
URL: https://github.com/apache/rocketmq-client-cpp/pull/429#issuecomment-1173053007
> I think passing by value and using `std::move` is better in setter function. https://abseil.io/tips/117
Copy Elision is nice. Passing by const reference is simpler and safer, code style is also unified in this project
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org