mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-03 12:07:57 +00:00
Add default constructor to Topic
This commit is contained in:
@@ -42,6 +42,11 @@ Topic Topic::make_non_owning(rd_kafka_topic_t* handle) {
|
||||
return Topic(handle, NonOwningTag{});
|
||||
}
|
||||
|
||||
Topic::Topic()
|
||||
: handle_(nullptr, nullptr) {
|
||||
|
||||
}
|
||||
|
||||
Topic::Topic(rd_kafka_topic_t* handle)
|
||||
: handle_(handle, &rd_kafka_topic_destroy) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user