Skip to content

libosrm: *Parameters do not perfectly forward to BaseParameters #2990

@daniel-j-h

Description

@daniel-j-h

Our BaseParameters hold some potentially expensive vectors for coordinates, hints etc.

std::vector<util::Coordinate> coordinates;
std::vector<boost::optional<Hint>> hints;
std::vector<boost::optional<double>> radiuses;
std::vector<boost::optional<Bearing>> bearings;

RouteParameters and others then forward their arguments

but note this line: it's Args... args_ and not Args&&... args making the forward below useless. We always copy those arguments. Fixing this by adding && to all *Parameters breaks the API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions