]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/Message: add aliases for static_pointer_cast
authorKefu Chai <kchai@redhat.com>
Sun, 14 Apr 2019 06:03:28 +0000 (14:03 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Apr 2019 22:59:41 +0000 (06:59 +0800)
commit213f0cec5e2b78eb3048022f2731b1f7855da4a9
treed8a8ff8d1b654f51c4c0f477dc7fb1f672582d8d
parent38cf7c13cae96f22116d306719507db740d2748c
msg/Message: add aliases for static_pointer_cast

strictly speaking, they are not "alias" of boost::static_pointer_cast,
but to avoid an extra conversion, instead of using
boost::static_pointer_cast<>, i am using std::static_cast<> directly for
creating boost::intrusive_ptr<> instance.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/Message.h