fix compile with clang-3.5

This commit is contained in:
Dane Springmeyer 2016-05-25 16:39:41 -04:00 committed by Patrick Niklaus
parent e08c4cff13
commit 82bfd4ee40
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -516,10 +516,12 @@ std::size_t Contractor::LoadEdgeExpandedGraph(
// vector to count used speeds for logging // vector to count used speeds for logging
// size offset by one since index 0 is used for speeds not from external file // size offset by one since index 0 is used for speeds not from external file
std::vector<std::atomic<std::uint64_t>> segment_speeds_counters( std::vector<std::atomic<std::uint64_t>> segment_speeds_counters;
segment_speed_filenames.size() + 1); for (std::size_t i=0;i<segment_speed_filenames.size() + 1;++i)
for (auto &each : segment_speeds_counters) {
each.store(0); segment_speeds_counters.emplace_back();
segment_speeds_counters[i].store(0);
}
const constexpr auto LUA_SOURCE = 0; const constexpr auto LUA_SOURCE = 0;
tbb::parallel_for_each(first, last, [&](const LeafNode &current_node) { tbb::parallel_for_each(first, last, [&](const LeafNode &current_node) {