This is an automated email from the ASF dual-hosted git repository.
lizhanhui pushed a commit to branch cpp
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/cpp by this push:
new 931c484 Fix: Windows failed to infer type of 'auto'
931c484 is described below
commit 931c48414700b7bdecf44343e31acfd1ffe5c1bc
Author: Li Zhanhui <[email protected]>
AuthorDate: Mon Jul 4 12:52:55 2022 +0800
Fix: Windows failed to infer type of 'auto'
---
cpp/src/main/cpp/rocketmq/ProcessQueueImpl.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/src/main/cpp/rocketmq/ProcessQueueImpl.cpp
b/cpp/src/main/cpp/rocketmq/ProcessQueueImpl.cpp
index 0eeb08e..9dc38ed 100644
--- a/cpp/src/main/cpp/rocketmq/ProcessQueueImpl.cpp
+++ b/cpp/src/main/cpp/rocketmq/ProcessQueueImpl.cpp
@@ -113,7 +113,7 @@ void ProcessQueueImpl::popMessage() {
std::weak_ptr<AsyncReceiveMessageCallback> cb{receive_callback_};
auto callback = [cb](const std::error_code& ec, const ReceiveMessageResult&
result) {
- auto recv_cb = cb.lock();
+ std::shared_ptr<AsyncReceiveMessageCallback> recv_cb = cb.lock();
if (recv_cb) {
recv_cb->onCompletion(ec, result);
}