From 47f7f41b899db58cc1f3bae0ec585c8810c08f76 Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Tue, 21 Nov 2023 14:29:18 -0500 Subject: [PATCH] Fix C++20 warning about implicit capture of 'this' --- src/libraries/JANA/Services/JPluginLoader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/JANA/Services/JPluginLoader.cc b/src/libraries/JANA/Services/JPluginLoader.cc index 3c36e971c..f37997293 100644 --- a/src/libraries/JANA/Services/JPluginLoader.cc +++ b/src/libraries/JANA/Services/JPluginLoader.cc @@ -100,7 +100,7 @@ void JPluginLoader::attach_plugins(JComponentManager* jcm) { // be attached. To accommodate this we wrap the following chunk of code in // a lambda function so we can run it over the additional plugins recursively // until all are attached. (see below) - auto add_plugins_lamda = [=](std::vector &plugins) { + auto add_plugins_lamda = [=, this](std::vector &plugins) { std::stringstream paths_checked; for (const std::string& plugin : plugins) { // The user might provide a short name like "JTest", or a long name like "JTest.so".