Skip to content

Commit

Permalink
Fix C++20 warning about implicit capture of 'this'
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Nov 21, 2023
1 parent 160bcdb commit 47f7f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/JANA/Services/JPluginLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> &plugins) {
auto add_plugins_lamda = [=, this](std::vector<std::string> &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".
Expand Down

0 comments on commit 47f7f41

Please sign in to comment.