Skip to content

Commit cbd88c6

Browse files
committed
Re-introduces the old RouteParameters ctor for API compatibility, see #2978
1 parent 621e302 commit cbd88c6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

include/engine/api/route_parameters.hpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,21 @@ struct RouteParameters : public BaseParameters
6969

7070
RouteParameters() = default;
7171

72+
template <typename... Args>
73+
RouteParameters(const bool steps_,
74+
const bool alternatives_,
75+
const GeometriesType geometries_,
76+
const OverviewType overview_,
77+
const boost::optional<bool> continue_straight_,
78+
Args... args_)
79+
: BaseParameters{std::forward<Args>(args_)...}, steps{steps_}, alternatives{alternatives_},
80+
annotations{false}, geometries{geometries_}, overview{overview_},
81+
continue_straight{continue_straight_}
82+
// Once we perfectly-forward `args` (see #2990) this constructor can delegate to the one below.
83+
{
84+
}
85+
86+
// RouteParameters constructor adding the `annotations` setting in a API-compatible way.
7287
template <typename... Args>
7388
RouteParameters(const bool steps_,
7489
const bool alternatives_,

0 commit comments

Comments
 (0)