diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-03-25 15:55:50 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-03-25 16:40:52 +0300 |
commit | aff6a26b56e91d4b117d98adaec51ef2f62d29cc (patch) | |
tree | 19cce15b227cdcdd922689c1ec87037b47ae541b /routing | |
parent | bd6d669d35c2be3999b77c432d9da2a6fc225cc4 (diff) |
[routing] review fixes
Diffstat (limited to 'routing')
-rw-r--r-- | routing/index_graph_starter_joints.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routing/index_graph_starter_joints.hpp b/routing/index_graph_starter_joints.hpp index 2978fc1efe..2533cb7e54 100644 --- a/routing/index_graph_starter_joints.hpp +++ b/routing/index_graph_starter_joints.hpp @@ -9,6 +9,7 @@ #include "base/assert.hpp" +#include <algorithm> #include <limits> #include <map> #include <queue> @@ -480,7 +481,7 @@ std::vector<JointEdge> IndexGraphStarterJoints<Graph>::FindFirstJoints(Segment c Segment const & endSegment = fromStart ? m_endSegment : m_startSegment; std::queue<Segment> queue; - queue.push(startSegment); + queue.emplace(startSegment); std::map<Segment, Segment> parent; std::map<Segment, RouteWeight> weight; |