Skip to content

Commit

Permalink
only capture variable of interest
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Sep 17, 2018
1 parent 9d0d486 commit e0fb0db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ template<class T> class SequentialCombinationGenerator {
}
int mincnew2=cnew2[0];
if (ss[n1-1]<mincnew2) return empty;
Vecint::iterator j1=find_if(ss.begin(),ss.end(), [&](auto c) { return c > mincnew2;});
Vecint::iterator j1=find_if(ss.begin(),ss.end(), [&mincnew2](auto c) { return c > mincnew2;});
if (ss.end()-j1 < p[i]) return empty;
Vecint sss(j1,ss.end());
for (int j=0;j<p[i];j++){cnew[ip+j]=cnew2[j]=sss[j];}
Expand Down

0 comments on commit e0fb0db

Please sign in to comment.