We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e491ab commit f5e622bCopy full SHA for f5e622b
rmw_email_cpp/src/conversion.cpp
@@ -117,6 +117,10 @@ std::string msg_to_yaml(
117
const rmw_email_pub_t * publisher,
118
const void * msg)
119
{
120
+ // We already have the concrete type support handle here for the publisher, but we don't know if
121
+ // it's C or C++. Since C/C++ are treated differently, we need to know which one it is.
122
+ // Try to get the C type support handle from it, which will return the same handle/pointer if it's
123
+ // C, otherwise it will return nullptr, in which case we try C++.
124
const rosidl_message_type_support_t * ts = nullptr;
125
ts = get_message_typesupport_handle(
126
&publisher->type_supports,
0 commit comments