Skip to content

Commit

Permalink
fix cpp20
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Mar 22, 2024
1 parent 02a3cab commit f6ae4cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Pythia8Generator::operator()(RandomEngine& rng) {
// TODO can we do this w/o the manual search and position check?
auto it = std::find_if(
vertices.begin(), vertices.end(),
[=](const SimVertex& other) { return pos4 == other.position4; });
[&pos4](const SimVertex& other) { return pos4 == other.position4; });
if (it != vertices.end()) {
particleId.setVertexSecondary(std::distance(vertices.begin(), it));
it->outgoing.insert(particleId);
Expand Down

0 comments on commit f6ae4cc

Please sign in to comment.