From 8dc0c52f0251ab22ccb96ed497e26270e1f3b999 Mon Sep 17 00:00:00 2001 From: Mikhail Gorbushin Date: Fri, 7 Dec 2018 15:45:25 +0300 Subject: [PATCH] [routing] fix crash in runtime for ndk18 --- routing_common/vehicle_model.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routing_common/vehicle_model.hpp b/routing_common/vehicle_model.hpp index 644d9823c7..0e9a9b6eee 100644 --- a/routing_common/vehicle_model.hpp +++ b/routing_common/vehicle_model.hpp @@ -177,12 +177,12 @@ public: AdditionalRoadTags() = default; AdditionalRoadTags(std::initializer_list const & hwtag, - InOutCitySpeedKMpH const & speed) noexcept - : m_hwtag(hwtag), m_speed(speed) + InOutCitySpeedKMpH const & speed) + : m_hwtag(hwtag.begin(), hwtag.end()), m_speed(speed) { } - std::initializer_list m_hwtag; + std::vector m_hwtag; InOutCitySpeedKMpH m_speed; };