diff --git a/src/engine/routing_algorithms/many_to_many.cpp b/src/engine/routing_algorithms/many_to_many.cpp index 558a44469..0878ac379 100644 --- a/src/engine/routing_algorithms/many_to_many.cpp +++ b/src/engine/routing_algorithms/many_to_many.cpp @@ -343,7 +343,7 @@ std::vector manyToManySearch(SearchEngineData &engine_wor // Backward search for target phantoms tbb::parallel_for( tbb::blocked_range{0, target_indices.size()}, - [&](const auto &chunk) { + [&](const tbb::blocked_range &chunk) { for (auto column_idx = chunk.begin(), end = chunk.end(); column_idx != end; ++column_idx) { @@ -375,7 +375,7 @@ std::vector manyToManySearch(SearchEngineData &engine_wor // For each source do forward search tbb::parallel_for(tbb::blocked_range{0, source_indices.size()}, - [&](const auto &chunk) { + [&](const tbb::blocked_range &chunk) { for (auto row_idx = chunk.begin(), end = chunk.end(); row_idx != end; ++row_idx) {