From fd7791a0e25bc347bc0f5568d3a75108974a1d28 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Fri, 15 Sep 2017 16:00:06 +0200 Subject: [PATCH] Fix gcc5 compilation Ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77786 --- src/engine/routing_algorithms/many_to_many.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {