Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorДобрый Ээх <bukharaev@gmail.com>2016-11-23 18:49:49 +0300
committerДобрый Ээх <bukharaev@gmail.com>2016-11-25 18:57:21 +0300
commita841ae0c6c15b102da8b1e887ac12e1722ecad96 (patch)
treecdcfe9616129afedc5311ab593e1c512e0d975d2 /routing/road_point.hpp
parent4ca876b6986ebead521e0a94d3958c3c7891ba08 (diff)
bugfix RedressRoute race
Diffstat (limited to 'routing/road_point.hpp')
-rw-r--r--routing/road_point.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/routing/road_point.hpp b/routing/road_point.hpp
index c613bca31f..654f89c675 100644
--- a/routing/road_point.hpp
+++ b/routing/road_point.hpp
@@ -1,6 +1,8 @@
#pragma once
#include "std/cstdint.hpp"
+#include "std/sstream.hpp"
+#include "std/string.hpp"
namespace routing
{
@@ -28,4 +30,12 @@ private:
uint32_t m_featureId;
uint32_t m_pointId;
};
+
+inline string DebugPrint(RoadPoint const & rp)
+{
+ ostringstream out;
+ out << "rp("
+ << "(" << rp.GetFeatureId() << ", " << rp.GetPointId() << ")";
+ return out.str();
+}
} // namespace routing