]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/crimson: drop copy assignment operator
authorKefu Chai <kchai@redhat.com>
Sun, 8 Aug 2021 13:41:34 +0000 (21:41 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 8 Aug 2021 13:41:36 +0000 (21:41 +0800)
commitaa62b71bb35c6dfddf79ae63acf7644df1d98a72
tree2c81f0162e145369a3b4103f13ebf831c8b951a0
parent567a4e6b961d581837a2f022d5e8f9ada72f4842
test/crimson: drop copy assignment operator

because of the const reference member variable of `parent`:

const delta_overlay_t &parent;

we are not allowed to mutate it. so the explicitly defaulted copy assignment
operator is implicitly deleted

this change silences the warnings from Clang like:

 ../src/test/crimson/seastore/test_transaction_manager.cc:159:12: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
         iterator &operator=(const iterator &) = default;
                   ^
 ../src/test/crimson/seastore/test_transaction_manager.cc:98:25: note: copy assignment operator of 'iterator' is implicitly deleted because field 'parent' is of reference type 'const transaction_manager_$
         const delta_overlay_t &parent;
                                ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/crimson/seastore/test_transaction_manager.cc