]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: avoid creating temporary with protected dtor
authorKefu Chai <kchai@redhat.com>
Sat, 11 Jan 2020 08:37:17 +0000 (16:37 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 11 Jan 2020 15:12:27 +0000 (23:12 +0800)
commit9d3a704c9d893b47a1f83b9428d0c3a4feef9a7c
tree25137cb548a210eba1602e66616ccc54023dae33
parent2ed00c0328ffb250aa1dad616d4e4586747ea288
crimson: avoid creating temporary with protected dtor

to address the compiler error from clang 9.0.1:

../src/crimson/os/cyanstore/cyan_collection.cc:16:34: error: temporary of type 'boost::intrusive_ref_counter<Object, boost::thread_unsafe_counter>' has protected destructor
  return new crimson::os::Object{};
                                 ^
/opt/ceph/include/boost/smart_ptr/intrusive_ref_counter.hpp:157:30: note: declared protected here
    BOOST_DEFAULTED_FUNCTION(~intrusive_ref_counter(), {})
                             ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/cyanstore/cyan_collection.cc