Make sure the Waitable class has a virtual destructor.
Noticed while reviewing this issue. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This commit is contained in:
parent
5632fa03ae
commit
c9c4253c84
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ class Waitable
|
||||||
public:
|
public:
|
||||||
RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(Waitable)
|
RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(Waitable)
|
||||||
|
|
||||||
|
RCLCPP_PUBLIC
|
||||||
|
virtual ~Waitable() = default;
|
||||||
|
|
||||||
/// Get the number of ready subscriptions
|
/// Get the number of ready subscriptions
|
||||||
/**
|
/**
|
||||||
* Returns a value of 0 by default.
|
* Returns a value of 0 by default.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue