diff --git a/rclcpp/include/rclcpp/subscription_base.hpp b/rclcpp/include/rclcpp/subscription_base.hpp index cb560d6..68df921 100644 --- a/rclcpp/include/rclcpp/subscription_base.hpp +++ b/rclcpp/include/rclcpp/subscription_base.hpp @@ -91,7 +91,7 @@ public: get_subscription_handle(); RCLCPP_PUBLIC - const std::shared_ptr + std::shared_ptr get_subscription_handle() const; /// Get all the QoS event handlers associated with this subscription. diff --git a/rclcpp/src/rclcpp/subscription_base.cpp b/rclcpp/src/rclcpp/subscription_base.cpp index dc8c559..3772603 100644 --- a/rclcpp/src/rclcpp/subscription_base.cpp +++ b/rclcpp/src/rclcpp/subscription_base.cpp @@ -109,7 +109,7 @@ SubscriptionBase::get_subscription_handle() return subscription_handle_; } -const std::shared_ptr +std::shared_ptr SubscriptionBase::get_subscription_handle() const { return subscription_handle_;