diff --git a/simgear/io/SGDataDistributionService.hxx b/simgear/io/SGDataDistributionService.hxx index a135ef6a..a2d9fc72 100644 --- a/simgear/io/SGDataDistributionService.hxx +++ b/simgear/io/SGDataDistributionService.hxx @@ -61,6 +61,11 @@ public: SG_DDS_Topic(const char* topic, const dds_topic_descriptor_t *desc, size_t size); + template + SG_DDS_Topic(T& type, const dds_topic_descriptor_t *desc) : SG_DDS_Topic() { + setup(desc); + } + /** Destructor */ ~SG_DDS_Topic();