Fix gcc5 compilation
Ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77786
This commit is contained in:
parent
e32b8bae00
commit
fd7791a0e2
@ -343,7 +343,7 @@ std::vector<EdgeWeight> manyToManySearch(SearchEngineData<Algorithm> &engine_wor
|
|||||||
// Backward search for target phantoms
|
// Backward search for target phantoms
|
||||||
tbb::parallel_for(
|
tbb::parallel_for(
|
||||||
tbb::blocked_range<std::size_t>{0, target_indices.size()},
|
tbb::blocked_range<std::size_t>{0, target_indices.size()},
|
||||||
[&](const auto &chunk) {
|
[&](const tbb::blocked_range<std::size_t> &chunk) {
|
||||||
for (auto column_idx = chunk.begin(), end = chunk.end(); column_idx != end;
|
for (auto column_idx = chunk.begin(), end = chunk.end(); column_idx != end;
|
||||||
++column_idx)
|
++column_idx)
|
||||||
{
|
{
|
||||||
@ -375,7 +375,7 @@ std::vector<EdgeWeight> manyToManySearch(SearchEngineData<Algorithm> &engine_wor
|
|||||||
|
|
||||||
// For each source do forward search
|
// For each source do forward search
|
||||||
tbb::parallel_for(tbb::blocked_range<std::size_t>{0, source_indices.size()},
|
tbb::parallel_for(tbb::blocked_range<std::size_t>{0, source_indices.size()},
|
||||||
[&](const auto &chunk) {
|
[&](const tbb::blocked_range<std::size_t> &chunk) {
|
||||||
for (auto row_idx = chunk.begin(), end = chunk.end(); row_idx != end;
|
for (auto row_idx = chunk.begin(), end = chunk.end(); row_idx != end;
|
||||||
++row_idx)
|
++row_idx)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user