summaryrefslogtreecommitdiff
path: root/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bottleneck_distance/include/gudhi/Neighbors_finder.h')
-rw-r--r--src/Bottleneck_distance/include/gudhi/Neighbors_finder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h b/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
index f28e21a2..90ddabef 100644
--- a/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
+++ b/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
@@ -122,8 +122,8 @@ inline int Neighbors_finder::pull_near(int u_point_index) {
else{
//Is the query point near to a V point in the plane ?
Internal_point u_point = g.get_u_point(u_point_index);
- std::vector<double> w = {1., 1.};
- K_neighbor_search search(kd_t, u_point, 0., true, Distance(0, 2, w));
+ std::array<double, 2> w = { {1., 1.} };
+ K_neighbor_search search(kd_t, u_point, 0., true, Distance(0, 2, w.begin(), w.end()));
auto it = search.begin();
if(it==search.end() || g.distance(u_point_index, it->first.point_index) > r)
return null_point_index();