Using the DDS Modern C++ API 6.1.0
I'm trying to use rti::topic::find_topics() to get all the local topics from my local domain participant but I can't get the correct syntax.
The following throws the runtime exception: Can't create an AnyTopic from a native topic. Try a typed Topic<T> instead
std::vector<dds::topic::AnyTopic> topics;
uint32_t topicCount = rti::topic::find_topics(participant, std::back_inserter(topics));
While this gives a various compilation errors: