]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/bufferlist: test move assignment operator not move constructor
authorChangcheng Liu <changcheng.liu@aliyun.com>
Sun, 10 May 2020 08:45:19 +0000 (16:45 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Tue, 12 May 2020 04:46:38 +0000 (12:46 +0800)
commite2016cdd497674158107189491ee3ee32034dae7
tree05b721a121a17f6ef5276a5b694d2b7068dff705
parent4a93e8ac60b6d450bb855da5bd46d6b575d281a0
test/bufferlist: test move assignment operator not move constructor

"bufferlist move = std::move(bl)" exercises the "move constructor".
But the purpose of this test is to verify the functionality of
"move assignment operator".
So this PR construct "move" first, and then assign rvalue reference to it.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/test/bufferlist.cc