Skip to content

Commit 6bfac70

Browse files
authored
[=, this] -> [&]
``` /home/runner/work/EICrecon/EICrecon/src/algorithms/digi/MPGDTrackerDigi.cc:156:21: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture] 156 | m_stripRank = [=, this](CellID vID) { | ~~^~~~ 1 error generated. ```
1 parent 533aea1 commit 6bfac70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/algorithms/digi/MPGDTrackerDigi.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ void MPGDTrackerDigi::init() {
153153
}
154154

155155
// Ordering of SUBVOLUMES (based on "STRIP" FIELD)
156-
m_stripRank = [=, this](CellID vID) {
156+
m_stripRank = [&](CellID vID) {
157157
int rank;
158158
CellID sID = vID & m_stripBits;
159159
for (rank = 0; rank < 5; rank++)
160160
if (sID == m_stripIDs[rank])
161161
return rank;
162162
return -1;
163163
};
164-
m_orientation = [=, this](CellID vID, CellID vJD) {
164+
m_orientation = [&](CellID vID, CellID vJD) {
165165
int ranki = m_stripRank(vID), rankj = m_stripRank(vJD);
166166
if (rankj > ranki)
167167
return +1;

0 commit comments

Comments
 (0)