From f8561952e9b47060410dd0a70b1465f008c1218c Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Mon, 5 Nov 2018 12:15:56 -0800 Subject: Don't use default capture --- src/cpp/client/secure_credentials.cc | 2 +- src/cpp/server/secure_server_credentials.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cpp') diff --git a/src/cpp/client/secure_credentials.cc b/src/cpp/client/secure_credentials.cc index ea0f43fc3e..7faaa20e78 100644 --- a/src/cpp/client/secure_credentials.cc +++ b/src/cpp/client/secure_credentials.cc @@ -228,7 +228,7 @@ int MetadataCredentialsPluginWrapper::GetMetadata( } if (w->plugin_->IsBlocking()) { // Asynchronous return. - w->thread_pool_->Add([=]() { + w->thread_pool_->Add([w, context, cb, user_data] { w->MetadataCredentialsPluginWrapper::InvokePlugin( context, cb, user_data, nullptr, nullptr, nullptr, nullptr); }); diff --git a/src/cpp/server/secure_server_credentials.cc b/src/cpp/server/secure_server_credentials.cc index 4911cd6eff..ebb17def32 100644 --- a/src/cpp/server/secure_server_credentials.cc +++ b/src/cpp/server/secure_server_credentials.cc @@ -43,7 +43,7 @@ void AuthMetadataProcessorAyncWrapper::Process( return; } if (w->processor_->IsBlocking()) { - w->thread_pool_->Add([=]() { + w->thread_pool_->Add([w, context, md, num_md, cb, user_data] { w->AuthMetadataProcessorAyncWrapper::InvokeProcessor(context, md, num_md, cb, user_data); }); -- cgit v1.2.3