2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-27 06:52:11 +00:00

Merged more changes (bug fixes, especially hopefully fixing the VC++ test failure) from trunk

[SVN r79390]
This commit is contained in:
Jeremiah Willcock
2012-07-09 20:07:47 +00:00
parent 708d8b62a5
commit 6604e3a013
3 changed files with 100 additions and 15 deletions

View File

@@ -139,7 +139,7 @@ public:
euclidean_heuristic(vertex_descriptor goal):m_goal(goal) {};
double operator()(vertex_descriptor v) {
return sqrt(pow(m_goal[0] - v[0], 2) + pow(m_goal[1] - v[1], 2));
return sqrt(pow(double(m_goal[0] - v[0]), 2) + pow(double(m_goal[1] - v[1]), 2));
}
private: