diff --git a/routing/cross_mwm_index_graph.hpp b/routing/cross_mwm_index_graph.hpp index 8986a7224f..809bd7fd60 100644 --- a/routing/cross_mwm_index_graph.hpp +++ b/routing/cross_mwm_index_graph.hpp @@ -191,6 +191,11 @@ private: if (!one.IsRealSegment() || !two.IsRealSegment()) return true; + static_assert(std::is_same::value || + std::is_same::value, + "Be careful of usage other ids here. " + "Make sure, there is not crash with your new CrossMwmId"); + std::vector geometryOne = GetFeaturePointsBySegment(one); std::vector geometryTwo = GetFeaturePointsBySegment(two);