Commit 6c2745fb authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

apply patch 1 by remove [&] to []

parent 7c153db4
......@@ -230,7 +230,7 @@ public:
// Sort if needed
if(particlesAreSorted == false){
FQuickSort<ParticleSortingStruct, int>::QsOmp(particlesToSort, nbParticles, [&](const ParticleSortingStruct& v1, const ParticleSortingStruct& v2){
FQuickSort<ParticleSortingStruct, int>::QsOmp(particlesToSort, nbParticles, [](const ParticleSortingStruct& v1, const ParticleSortingStruct& v2){
return v1.mindex <= v2.mindex;
});
}
......@@ -407,7 +407,7 @@ public:
// Sort if needed
if(particlesAreSorted == false){
FQuickSort<ParticleSortingStruct, int>::QsOmp(particlesToSort, nbParticles, [&](const ParticleSortingStruct& v1, const ParticleSortingStruct& v2){
FQuickSort<ParticleSortingStruct, int>::QsOmp(particlesToSort, nbParticles, [](const ParticleSortingStruct& v1, const ParticleSortingStruct& v2){
return v1.mindex <= v2.mindex;
});
}
......
......@@ -141,7 +141,7 @@ public:
}
static void QsSequential(SortType array[], const IndexType size){
QsSequential(array, size, [&](const SortType& v1, const SortType& v2){
QsSequential(array, size, [](const SortType& v1, const SortType& v2){
return v1 <= v2;
});
}
......@@ -225,7 +225,7 @@ public:
#endif
static void QsOmp(SortType array[], const IndexType size){
QsOmp(array, size, [&](const SortType& v1, const SortType& v2){
QsOmp(array, size, [](const SortType& v1, const SortType& v2){
return v1 <= v2;
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment