-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Milestone
Description
Our BaseParameters hold some potentially expensive vectors for coordinates, hints etc.
osrm-backend/include/engine/api/base_parameters.hpp
Lines 64 to 67 in b821a1d
| 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
| Args... args_) |
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.