tongsucn edited a comment on pull request #13293: URL: https://github.com/apache/pulsar/pull/13293#issuecomment-994254501
> `auto msg = MessageBuilder().setContent(value).build();` @BewareMyPower I think the first `setContent` assertion should be fine. Because it internally allocates a same-sized `std::string` and calls `std::copy` explicitly, rather than using `std::string`'s copy constructor. Thanks bro -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
