From 7701c5f9265fe09349fc10fca8f83459a38817f8 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Tue, 21 May 2024 18:04:11 +0200 Subject: [PATCH] use constexpr if --- .../routing_algorithms/routing_base_mld.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/engine/routing_algorithms/routing_base_mld.hpp b/include/engine/routing_algorithms/routing_base_mld.hpp index 10e3ad417b..62c2c04eca 100644 --- a/include/engine/routing_algorithms/routing_base_mld.hpp +++ b/include/engine/routing_algorithms/routing_base_mld.hpp @@ -716,13 +716,14 @@ void unpackPath(const FacadeT &facade, annotatePath(facade, route_endpoints, unpacked_nodes, unpacked_edges, unpacked_path); } -inline double getNetworkDistance(SearchEngineData &engine_working_data, - const DataFacade &facade, - typename SearchEngineData::MapMatchingQueryHeap &forward_heap, - typename SearchEngineData::MapMatchingQueryHeap &reverse_heap, - const PhantomNode &source_phantom, - const PhantomNode &target_phantom, - EdgeWeight weight_upper_bound = INVALID_EDGE_WEIGHT) +inline double +getNetworkDistance(SearchEngineData &engine_working_data, + const DataFacade &facade, + typename SearchEngineData::MapMatchingQueryHeap &forward_heap, + typename SearchEngineData::MapMatchingQueryHeap &reverse_heap, + const PhantomNode &source_phantom, + const PhantomNode &target_phantom, + EdgeWeight weight_upper_bound = INVALID_EDGE_WEIGHT) { forward_heap.Clear(); reverse_heap.Clear();