The GitHub Actions job "Build" on 
rocketmq-clients.git/fix/cpp-correctness-threadsafety-memory has failed.
Run started by GitHub user lizhimins (triggered by lizhimins).

Head commit for run:
d1f6d2835db9012ced0083c19079fb7af3b550ff / terrance.lzm 
<[email protected]>
[C++] Restore const SendReceipt& in public SendCallback signature

SendReceipt contains a unique_ptr (MessageConstPtr) making it non-copyable,
so internal call sites that need ownership transfer must use const_cast + move.
This is safe because the receipt is always a local temporary in SendContext.

Keep const in the public API to avoid exposing internal move semantics to users.
Added comments at the two const_cast sites explaining why they are safe.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

Report URL: https://github.com/apache/rocketmq-clients/actions/runs/27124331579

With regards,
GitHub Actions via GitBox

Reply via email to