bschofield commented on issue #6785:
URL: https://github.com/apache/pulsar/issues/6785#issuecomment-619529110


   That would be great. Otherwise I think we would have to do something like 
this:
   
   ```C++
   
   const void *pulsar_message_id_set_topic(pulsar_message_id_t *messageId, 
const char *topic) {
       std::string *p = new std::string(topic);
       messageId->messageId.setTopicName(*p);
       return (void *)p;
   }
   
   void pulsar_message_id_free_topic(void *p) {
      delete (std::string *)p;
   }
   ```
   
   ...but that seems horrible. I like your solution much better.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to