Add SMART_PTRS_DEF to LifecyclePublisher (#569)

This commit is contained in:
cho3 2018-10-11 17:33:41 -07:00 committed by Karsten Knese
parent 3353ffbb15
commit 144c24c8fd

View file

@ -48,6 +48,8 @@ class LifecyclePublisher : public LifecyclePublisherInterface,
public rclcpp::Publisher<MessageT, Alloc>
{
public:
RCLCPP_SMART_PTR_DEFINITIONS(LifecyclePublisher)
using MessageAllocTraits = rclcpp::allocator::AllocRebind<MessageT, Alloc>;
using MessageAlloc = typename MessageAllocTraits::allocator_type;
using MessageDeleter = rclcpp::allocator::Deleter<MessageAlloc, MessageT>;