From c9c4253c84e28e208f5a578fb15d5b3fdcff74aa Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Wed, 27 May 2020 21:56:11 +0000 Subject: [PATCH] Make sure the Waitable class has a virtual destructor. Noticed while reviewing this issue. Signed-off-by: Chris Lalancette --- rclcpp/include/rclcpp/waitable.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rclcpp/include/rclcpp/waitable.hpp b/rclcpp/include/rclcpp/waitable.hpp index 2f28234..428cc1d 100644 --- a/rclcpp/include/rclcpp/waitable.hpp +++ b/rclcpp/include/rclcpp/waitable.hpp @@ -30,6 +30,9 @@ class Waitable public: RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(Waitable) + RCLCPP_PUBLIC + virtual ~Waitable() = default; + /// Get the number of ready subscriptions /** * Returns a value of 0 by default.