From b422b636d30b79de5ded30b9c454ab9d70636e2e Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Thu, 13 Apr 2017 11:52:07 +0000 Subject: [PATCH] Remove boost::make_unique to fix travis node builds --- .travis.yml | 2 +- include/nodejs/node_osrm_support.hpp | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index a6e1ca73a..2aae74aeb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -338,7 +338,7 @@ script: - ./unit_tests/server-tests - ./unit_tests/partition-tests - | - if [ -z "${ENABLE_SANITIZER}" ]; then + if [ -z "${ENABLE_SANITIZER}" ] && [ "$TARGET_ARCH" != "i686" ]; then npm run nodejs-tests fi - popd diff --git a/include/nodejs/node_osrm_support.hpp b/include/nodejs/node_osrm_support.hpp index 18bd7f74e..3d70391d9 100644 --- a/include/nodejs/node_osrm_support.hpp +++ b/include/nodejs/node_osrm_support.hpp @@ -18,7 +18,6 @@ #include "osrm/trip_parameters.hpp" #include -#include #include #include @@ -81,7 +80,7 @@ inline void ParseResult(const osrm::Status &result_status, const std::string & / inline engine_config_ptr argumentsToEngineConfig(const Nan::FunctionCallbackInfo &args) { Nan::HandleScope scope; - auto engine_config = boost::make_unique(); + auto engine_config = std::make_unique(); if (args.Length() == 0) { @@ -631,7 +630,7 @@ inline route_parameters_ptr argumentsToRouteParameter(const Nan::FunctionCallbackInfo &args, bool requires_multiple_coordinates) { - route_parameters_ptr params = boost::make_unique(); + route_parameters_ptr params = std::make_unique(); bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); if (!has_base_params) return route_parameters_ptr(); @@ -681,7 +680,7 @@ argumentsToRouteParameter(const Nan::FunctionCallbackInfo &args, inline tile_parameters_ptr argumentsToTileParameters(const Nan::FunctionCallbackInfo &args, bool /*unused*/) { - tile_parameters_ptr params = boost::make_unique(); + tile_parameters_ptr params = std::make_unique(); if (args.Length() < 2) { @@ -742,7 +741,7 @@ inline nearest_parameters_ptr argumentsToNearestParameter(const Nan::FunctionCallbackInfo &args, bool requires_multiple_coordinates) { - nearest_parameters_ptr params = boost::make_unique(); + nearest_parameters_ptr params = std::make_unique(); bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); if (!has_base_params) return nearest_parameters_ptr(); @@ -781,7 +780,7 @@ inline table_parameters_ptr argumentsToTableParameter(const Nan::FunctionCallbackInfo &args, bool requires_multiple_coordinates) { - table_parameters_ptr params = boost::make_unique(); + table_parameters_ptr params = std::make_unique(); bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); if (!has_base_params) return table_parameters_ptr(); @@ -875,7 +874,7 @@ inline trip_parameters_ptr argumentsToTripParameter(const Nan::FunctionCallbackInfo &args, bool requires_multiple_coordinates) { - trip_parameters_ptr params = boost::make_unique(); + trip_parameters_ptr params = std::make_unique(); bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); if (!has_base_params) return trip_parameters_ptr(); @@ -970,7 +969,7 @@ inline match_parameters_ptr argumentsToMatchParameter(const Nan::FunctionCallbackInfo &args, bool requires_multiple_coordinates) { - match_parameters_ptr params = boost::make_unique(); + match_parameters_ptr params = std::make_unique(); bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); if (!has_base_params) return match_parameters_ptr();