You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2021/01/04 20:36:51 UTC
[pulsar] branch master updated: [cpp-client] Fix compilation issue
caused by non-virtual destructor in consumer. (#9105) (#9106)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 68be899 [cpp-client] Fix compilation issue caused by non-virtual destructor in consumer. (#9105) (#9106)
68be899 is described below
commit 68be899b7a80fb4a7ae3e7f5e82ddf29a0791c6d
Author: Tong <to...@users.noreply.github.com>
AuthorDate: Tue Jan 5 04:36:23 2021 +0800
[cpp-client] Fix compilation issue caused by non-virtual destructor in consumer. (#9105) (#9106)
Related issue: #9105
---
pulsar-client-cpp/include/pulsar/Consumer.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/pulsar-client-cpp/include/pulsar/Consumer.h b/pulsar-client-cpp/include/pulsar/Consumer.h
index 86b5bb3..e049d41 100644
--- a/pulsar-client-cpp/include/pulsar/Consumer.h
+++ b/pulsar-client-cpp/include/pulsar/Consumer.h
@@ -38,6 +38,7 @@ class PULSAR_PUBLIC Consumer {
* Construct an uninitialized consumer object
*/
Consumer();
+ virtual ~Consumer() = default;
/**
* @return the topic this consumer is subscribed to