problem in using matched_publication_participant_data

1 post / 0 new
Offline
Last seen: 12 hours 18 min ago
Joined: 09/10/2022
Posts: 30
problem in using matched_publication_participant_data

Hi, I'm trying to use function matched_publication_participant_data() to achive domain_partipant's name of matched publishers. But as modern c++ ducument said, if matched_publisher and data reader where in the same domain_participant, it will throw an exception. how can I know that the matched_publisher and data_reader are in the same domain_participant to don't use function matched_publication_participant_data() for that matched_publisher? I don't want to see any exception, therefore, I need to know that matched_publisher and  data_reader are not in same domain_participant before using function matched_publication_participant_data.