Skip to content

Commit a78d0cb

Browse files
authored
add smart pointer macros definitions to action server and client base classes (#2631)
Signed-off-by: Alberto Soragna <[email protected]>
1 parent 918363d commit a78d0cb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

rclcpp_action/include/rclcpp_action/client.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class ClientBaseImpl;
6262
class ClientBase : public rclcpp::Waitable
6363
{
6464
public:
65+
RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(ClientBase)
66+
6567
RCLCPP_ACTION_PUBLIC
6668
virtual ~ClientBase();
6769

rclcpp_action/include/rclcpp_action/server.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ enum class CancelResponse : int8_t
7272
class ServerBase : public rclcpp::Waitable
7373
{
7474
public:
75+
RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(ServerBase)
76+
7577
/// Enum to identify entities belonging to the action server
7678
enum class EntityType : std::size_t
7779
{

0 commit comments

Comments
 (0)