|
18 | 18 | #include "osrm/trip_parameters.hpp" |
19 | 19 |
|
20 | 20 | #include <boost/assert.hpp> |
21 | | -#include <boost/make_unique.hpp> |
22 | 21 | #include <boost/optional.hpp> |
23 | 22 |
|
24 | 23 | #include <algorithm> |
@@ -81,7 +80,7 @@ inline void ParseResult(const osrm::Status &result_status, const std::string & / |
81 | 80 | inline engine_config_ptr argumentsToEngineConfig(const Nan::FunctionCallbackInfo<v8::Value> &args) |
82 | 81 | { |
83 | 82 | Nan::HandleScope scope; |
84 | | - auto engine_config = boost::make_unique<osrm::EngineConfig>(); |
| 83 | + auto engine_config = std::make_unique<osrm::EngineConfig>(); |
85 | 84 |
|
86 | 85 | if (args.Length() == 0) |
87 | 86 | { |
@@ -631,7 +630,7 @@ inline route_parameters_ptr |
631 | 630 | argumentsToRouteParameter(const Nan::FunctionCallbackInfo<v8::Value> &args, |
632 | 631 | bool requires_multiple_coordinates) |
633 | 632 | { |
634 | | - route_parameters_ptr params = boost::make_unique<osrm::RouteParameters>(); |
| 633 | + route_parameters_ptr params = std::make_unique<osrm::RouteParameters>(); |
635 | 634 | bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); |
636 | 635 | if (!has_base_params) |
637 | 636 | return route_parameters_ptr(); |
@@ -681,7 +680,7 @@ argumentsToRouteParameter(const Nan::FunctionCallbackInfo<v8::Value> &args, |
681 | 680 | inline tile_parameters_ptr |
682 | 681 | argumentsToTileParameters(const Nan::FunctionCallbackInfo<v8::Value> &args, bool /*unused*/) |
683 | 682 | { |
684 | | - tile_parameters_ptr params = boost::make_unique<osrm::TileParameters>(); |
| 683 | + tile_parameters_ptr params = std::make_unique<osrm::TileParameters>(); |
685 | 684 |
|
686 | 685 | if (args.Length() < 2) |
687 | 686 | { |
@@ -742,7 +741,7 @@ inline nearest_parameters_ptr |
742 | 741 | argumentsToNearestParameter(const Nan::FunctionCallbackInfo<v8::Value> &args, |
743 | 742 | bool requires_multiple_coordinates) |
744 | 743 | { |
745 | | - nearest_parameters_ptr params = boost::make_unique<osrm::NearestParameters>(); |
| 744 | + nearest_parameters_ptr params = std::make_unique<osrm::NearestParameters>(); |
746 | 745 | bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); |
747 | 746 | if (!has_base_params) |
748 | 747 | return nearest_parameters_ptr(); |
@@ -781,7 +780,7 @@ inline table_parameters_ptr |
781 | 780 | argumentsToTableParameter(const Nan::FunctionCallbackInfo<v8::Value> &args, |
782 | 781 | bool requires_multiple_coordinates) |
783 | 782 | { |
784 | | - table_parameters_ptr params = boost::make_unique<osrm::TableParameters>(); |
| 783 | + table_parameters_ptr params = std::make_unique<osrm::TableParameters>(); |
785 | 784 | bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); |
786 | 785 | if (!has_base_params) |
787 | 786 | return table_parameters_ptr(); |
@@ -875,7 +874,7 @@ inline trip_parameters_ptr |
875 | 874 | argumentsToTripParameter(const Nan::FunctionCallbackInfo<v8::Value> &args, |
876 | 875 | bool requires_multiple_coordinates) |
877 | 876 | { |
878 | | - trip_parameters_ptr params = boost::make_unique<osrm::TripParameters>(); |
| 877 | + trip_parameters_ptr params = std::make_unique<osrm::TripParameters>(); |
879 | 878 | bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); |
880 | 879 | if (!has_base_params) |
881 | 880 | return trip_parameters_ptr(); |
@@ -970,7 +969,7 @@ inline match_parameters_ptr |
970 | 969 | argumentsToMatchParameter(const Nan::FunctionCallbackInfo<v8::Value> &args, |
971 | 970 | bool requires_multiple_coordinates) |
972 | 971 | { |
973 | | - match_parameters_ptr params = boost::make_unique<osrm::MatchParameters>(); |
| 972 | + match_parameters_ptr params = std::make_unique<osrm::MatchParameters>(); |
974 | 973 | bool has_base_params = argumentsToParameter(args, params, requires_multiple_coordinates); |
975 | 974 | if (!has_base_params) |
976 | 975 | return match_parameters_ptr(); |
|
0 commit comments