find_topics

3 posts / 0 new
Last post
Offline
Last seen: 2 years 8 months ago
Joined: 08/03/2021
Posts: 6
find_topics()

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:

Organization:
Keywords:
Subscribe to RSS - find_topics