Add SMART_PTRS_DEF to LifecyclePublisher (#569)
This commit is contained in:
parent
3353ffbb15
commit
144c24c8fd
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ class LifecyclePublisher : public LifecyclePublisherInterface,
|
||||||
public rclcpp::Publisher<MessageT, Alloc>
|
public rclcpp::Publisher<MessageT, Alloc>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
RCLCPP_SMART_PTR_DEFINITIONS(LifecyclePublisher)
|
||||||
|
|
||||||
using MessageAllocTraits = rclcpp::allocator::AllocRebind<MessageT, Alloc>;
|
using MessageAllocTraits = rclcpp::allocator::AllocRebind<MessageT, Alloc>;
|
||||||
using MessageAlloc = typename MessageAllocTraits::allocator_type;
|
using MessageAlloc = typename MessageAllocTraits::allocator_type;
|
||||||
using MessageDeleter = rclcpp::allocator::Deleter<MessageAlloc, MessageT>;
|
using MessageDeleter = rclcpp::allocator::Deleter<MessageAlloc, MessageT>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue