osrm-backend/include
Michael Bell 5d468f2897
Make edge metrics strongly typed (#6421)
This change takes the existing typedefs for weight, duration and
distance, and makes them proper types, using the existing Alias
functionality.

Primarily this is to prevent bugs where the metrics are switched,
but it also adds additional documentation. For example, it now
makes it clear (despite the naming of variables) that most of the
trip algorithm is running on the duration metric.

I've not made any changes to the casts performed between metrics
and numeric types, they now just more explicit.
2022-10-28 15:16:12 +01:00
..
contractor Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
customizer Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
engine Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
extractor Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
guidance Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
nodejs Handle snapping parameter for all plugins in NodeJs bindings, but not for Route only (#6417) 2022-10-22 16:49:35 +02:00
osrm Undo libosrm API break by adding old interface as method overload (#5861) 2021-01-27 09:14:44 -08:00
partitioner Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
server Revert back to using custom HTTP parser instead of Boost.Beast (#6407) 2022-10-14 14:37:33 +02:00
storage Refactor CMake code related to compiler warnings, enable some additional warnings (#6355) 2022-09-30 11:42:36 +02:00
updater Fix a couple of warnings found by PVS Studio (#6372) 2022-09-22 23:28:12 +02:00
util Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00