]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Remove copy from ceph::static_ptr
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 24 Sep 2020 16:45:31 +0000 (12:45 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Fri, 20 Nov 2020 15:28:30 +0000 (10:28 -0500)
commite3013cb0910805d87ba0b43eb7edeeb12684e1c9
treed9c9552be76d65be6839e7b2881e3c8a4fcb1ebe
parentc590759da014dbcca7b73fe8c8765376a4e91185
Remove copy from ceph::static_ptr

The copy functionality of ceph::static_ptr is unused, and it means that
nothing containing a std::unique_ptr (or any other non-copyable type)
can be put into a static_ptr.

Remove the copy functionality, so that unique_ptr can be used in
static_ptr.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/common/static_ptr.h
src/test/common/test_static_ptr.cc