From 960f9ba29aa42b5f6b2010c341cffc333ecf18b8 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Mon, 10 Jul 2017 12:17:17 +0200 Subject: [PATCH] Don't use stxxl vector in contractor --- include/contractor/graph_contractor.hpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/contractor/graph_contractor.hpp b/include/contractor/graph_contractor.hpp index 32850db0d..8e641b022 100644 --- a/include/contractor/graph_contractor.hpp +++ b/include/contractor/graph_contractor.hpp @@ -14,8 +14,6 @@ #include -#include - #include #include #include @@ -25,6 +23,10 @@ #include #include +#if USE_STXXL_LIBRARY +#include +#endif + namespace osrm { namespace contractor @@ -33,6 +35,12 @@ namespace contractor class GraphContractor { private: +#if USE_STXXL_LIBRARY + template using ExternalVector = stxxl::vector; +#else + template using ExternalVector = std::vector; +#endif + struct ContractorThreadData { ContractorDijkstra dijkstra; @@ -401,7 +409,7 @@ class GraphContractor bool Bias(const NodeID a, const NodeID b) const; std::shared_ptr contractor_graph; - stxxl::vector external_edge_list; + ExternalVector external_edge_list; std::vector orig_node_id_from_new_node_id_map; std::vector node_levels;