diff --git a/include/engine/api/match_parameters.hpp b/include/engine/api/match_parameters.hpp index 87e67ebbbda..51242b380b6 100644 --- a/include/engine/api/match_parameters.hpp +++ b/include/engine/api/match_parameters.hpp @@ -61,7 +61,7 @@ struct MatchParameters : public RouteParameters } template - MatchParameters(std::vector timestamps_, Args... args_) + MatchParameters(std::vector timestamps_, Args &&... args_) : RouteParameters{std::forward(args_)...}, timestamps{std::move(timestamps_)} { } diff --git a/include/engine/api/route_parameters.hpp b/include/engine/api/route_parameters.hpp index 0c2d1e31e00..8a32f6a6555 100644 --- a/include/engine/api/route_parameters.hpp +++ b/include/engine/api/route_parameters.hpp @@ -91,7 +91,7 @@ struct RouteParameters : public BaseParameters const GeometriesType geometries_, const OverviewType overview_, const boost::optional continue_straight_, - Args... args_) + Args &&... args_) : BaseParameters{std::forward(args_)...}, steps{steps_}, alternatives{alternatives_}, annotations{annotations_}, geometries{geometries_}, overview{overview_}, continue_straight{continue_straight_} diff --git a/include/engine/api/table_parameters.hpp b/include/engine/api/table_parameters.hpp index 78f17b1e168..1bf9c4c43d9 100644 --- a/include/engine/api/table_parameters.hpp +++ b/include/engine/api/table_parameters.hpp @@ -61,10 +61,11 @@ struct TableParameters : public BaseParameters std::vector destinations; TableParameters() = default; + template TableParameters(std::vector sources_, std::vector destinations_, - Args... args_) + Args &&... args_) : BaseParameters{std::forward(args_)...}, sources{std::move(sources_)}, destinations{std::move(destinations_)} {