replace auto parameters in lambda function

This commit is contained in:
xaedes 2023-05-31 00:25:37 +02:00
parent 8fd8599f61
commit 7f172c1070
No known key found for this signature in database
GPG key ID: 30030EDD817EA2B1

View file

@ -1652,7 +1652,7 @@ void shuffle_ints(int * begin, int * end) {
for (int i=0; i<max+1; ++i) {
vals[i] = frand();
}
std::sort(begin, end, [&vals](auto a, auto b){
std::sort(begin, end, [&vals](int a, int b){
return vals.at(a) < vals.at(b);
});
}