]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg: Add optimizing move
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 15 Mar 2019 19:18:21 +0000 (15:18 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 15 Mar 2019 19:19:29 +0000 (15:19 -0400)
commit9908f0e652b95051ab0aad40ef3ff5bad58f6d2f
treea88280c7673e45ce69a15fd503472c5bcaa3969d
parentf486a780cd380db6dcbafe1212a2904d42b1366d
msg: Add optimizing move

Variables declared in the function should be returned without using
`std::move`, but parameters to the function should be returned *with*
std::move. (If one wants them to move.)

(I know it's complicated. Sorry.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/msg/async/frames_v2.h