Fix inserting edges of shortest path for sharing check

This caused very sub-optimal routes to be selected.
This commit is contained in:
Patrick Niklaus 2018-04-19 18:57:24 +00:00 committed by Patrick Niklaus
parent 89f6e2d55b
commit 1990de7dcc

View File

@ -402,7 +402,7 @@ template <typename RandIt> RandIt filterUnpackedPathsBySharing(RandIt first, Ran
std::unordered_set<EdgeID> edges;
edges.reserve(size * shortest_path.edges.size() * (1. + kAtMostLongerBy));
edges.insert(begin(shortest_path.edges), begin(shortest_path.edges));
edges.insert(begin(shortest_path.edges), end(shortest_path.edges));
const auto over_sharing_limit = [&](const auto &unpacked) {