From cbd88c63b9f8fee5eb9d401baa9a5f493efe26ac Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Mon, 3 Oct 2016 17:24:28 +0200 Subject: [PATCH] Re-introduces the old `RouteParameters` ctor for API compatibility, see #2978 --- include/engine/api/route_parameters.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/engine/api/route_parameters.hpp b/include/engine/api/route_parameters.hpp index bca6e4d1a..0c2d1e31e 100644 --- a/include/engine/api/route_parameters.hpp +++ b/include/engine/api/route_parameters.hpp @@ -69,6 +69,21 @@ struct RouteParameters : public BaseParameters RouteParameters() = default; + template + RouteParameters(const bool steps_, + const bool alternatives_, + const GeometriesType geometries_, + const OverviewType overview_, + const boost::optional continue_straight_, + Args... args_) + : BaseParameters{std::forward(args_)...}, steps{steps_}, alternatives{alternatives_}, + annotations{false}, geometries{geometries_}, overview{overview_}, + continue_straight{continue_straight_} + // Once we perfectly-forward `args` (see #2990) this constructor can delegate to the one below. + { + } + + // RouteParameters constructor adding the `annotations` setting in a API-compatible way. template RouteParameters(const bool steps_, const bool alternatives_,