diff --git a/util/datastore_options.hpp b/util/datastore_options.hpp index b5ee4051b..4a8320c77 100644 --- a/util/datastore_options.hpp +++ b/util/datastore_options.hpp @@ -33,16 +33,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "osrm_exception.hpp" #include "simple_logger.hpp" -#include - #include #include #include #include +#include // generate boost::program_options object for the routing part -bool GenerateDataStoreOptions(const int argc, const char *argv[], ServerPaths &paths) +bool GenerateDataStoreOptions(const int argc, const char *argv[], std::unordered_map &paths) { // declare a group of options that will be allowed only on command line boost::program_options::options_description generic_options("Options"); diff --git a/util/routed_options.hpp b/util/routed_options.hpp index 94019e6e5..2ec26e091 100644 --- a/util/routed_options.hpp +++ b/util/routed_options.hpp @@ -36,15 +36,14 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include -#include - +#include #include #include const static unsigned INIT_OK_START_ENGINE = 0; const static unsigned INIT_OK_DO_NOT_START_ENGINE = 1; const static unsigned INIT_FAILED = -1; -inline void populate_base_path(ServerPaths &server_paths) +inline void populate_base_path(std::unordered_map &server_paths) { // populate the server_path object auto path_iterator = server_paths.find("base"); @@ -138,7 +137,7 @@ inline void populate_base_path(ServerPaths &server_paths) // generate boost::program_options object for the routing part inline unsigned GenerateServerProgramOptions(const int argc, const char *argv[], - ServerPaths &paths, + std::unordered_map &paths, std::string &ip_address, int &ip_port, int &requested_num_threads,