diff --git a/CommonTools/Statistics/interface/SequentialCombinationGenerator.h b/CommonTools/Statistics/interface/SequentialCombinationGenerator.h index d0d0f2d4eb62b..3adc792feec21 100644 --- a/CommonTools/Statistics/interface/SequentialCombinationGenerator.h +++ b/CommonTools/Statistics/interface/SequentialCombinationGenerator.h @@ -99,7 +99,7 @@ template class SequentialCombinationGenerator { } int mincnew2=cnew2[0]; if (ss[n1-1] 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