Virtual destructors (#212)

This commit is contained in:
Jackie Kay 2016-04-25 16:31:03 -07:00
parent e961189be8
commit 6adfb917a9
4 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@ public:
const std::string & service_name);
RCLCPP_PUBLIC
~ClientBase();
virtual ~ClientBase();
RCLCPP_PUBLIC
const std::string &

View file

@ -80,7 +80,7 @@ public:
bool use_intra_process_comms = false);
RCLCPP_PUBLIC
~Node();
virtual ~Node();
/// Get the name of the node.
// \return The name of the node.

View file

@ -67,7 +67,7 @@ public:
size_t queue_size);
RCLCPP_PUBLIC
~PublisherBase();
virtual ~PublisherBase();
/// Get the topic that this publisher publishes on.
// \return The topic name.

View file

@ -47,7 +47,7 @@ public:
const std::string service_name);
RCLCPP_PUBLIC
~ServiceBase();
virtual ~ServiceBase();
RCLCPP_PUBLIC
std::string