aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-11-05 12:15:56 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-11-05 12:15:56 -0800
commitf8561952e9b47060410dd0a70b1465f008c1218c (patch)
tree03e586422226686e04c21de30192cd9be8d50cfc /src/cpp
parente08a2b387a0b00534cc229702c6f358cb02870ac (diff)
Don't use default capture
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/client/secure_credentials.cc2
-rw-r--r--src/cpp/server/secure_server_credentials.cc2
2 files changed, 2 insertions, 2 deletions
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);
});