summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/examples/tradedemo/topic_publisher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/tradedemo/topic_publisher.cpp b/cpp/examples/tradedemo/topic_publisher.cpp
index 1670a3433b..913f2cb9fe 100644
--- a/cpp/examples/tradedemo/topic_publisher.cpp
+++ b/cpp/examples/tradedemo/topic_publisher.cpp
@@ -90,7 +90,7 @@ class Publisher {
virtual void publish_ticker(const std::string queue, unsigned short& curr_price);
virtual void publish_market(const std::string queue, unsigned short& curr_price, int i);
- ~Publisher() { };
+ virtual ~Publisher() { };
};
Publisher::Publisher(Session& session, int ttl_time, const unsigned long shares[6]) :