This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/cxx_rsa_update
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/feature/cxx_rsa_update by this
push:
new a797a87 Adds template arg to weak_ptr construction
a797a87 is described below
commit a797a8767f79f9b4a4ff3e87cc79976a1e5d19b3
Author: Pepijn Noltes <[email protected]>
AuthorDate: Wed May 12 11:34:52 2021 +0200
Adds template arg to weak_ptr construction
---
.../integration/src/TestExportImportRemoteServiceFactory.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/bundles/cxx_remote_services/integration/src/TestExportImportRemoteServiceFactory.cc
b/bundles/cxx_remote_services/integration/src/TestExportImportRemoteServiceFactory.cc
index ce50cbd..1dd20cf 100644
---
a/bundles/cxx_remote_services/integration/src/TestExportImportRemoteServiceFactory.cc
+++
b/bundles/cxx_remote_services/integration/src/TestExportImportRemoteServiceFactory.cc
@@ -259,7 +259,7 @@ public:
std::lock_guard lock{mutex};
auto promise = calculator->add(invoke->arg1, invoke->arg2);
promise
- .onFailure([weakPub = std::weak_ptr{publisher}, msgId =
returnMsgId, metaProps](const auto& exp) {
+ .onFailure([weakPub =
std::weak_ptr<pubsub_publisher>{publisher}, msgId = returnMsgId,
metaProps](const auto& exp) {
auto pub = weakPub.lock();
if (pub) {
Calculator$add$Return ret;
@@ -272,7 +272,7 @@ public:
//TODO error handling
}
})
- .onSuccess([weakSvc = std::weak_ptr{calculator}, weakPub =
std::weak_ptr{publisher}, msgId = returnMsgId, metaProps](auto val) {
+ .onSuccess([weakSvc = std::weak_ptr<ICalculator>{calculator},
weakPub = std::weak_ptr<pubsub_publisher>{publisher}, msgId = returnMsgId,
metaProps](auto val) {
auto pub = weakPub.lock();
auto svc = weakSvc.lock();
if (pub && svc) {