Explorar o código

comparison functor of priority queue is required to represent a strict ordering

Nico Schertler %!s(int64=6) %!d(string=hai) anos
pai
achega
9621a87edd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/igl/knn.cpp

+ 1 - 1
include/igl/knn.cpp

@@ -68,7 +68,7 @@ namespace igl {
                                              CN.row(right-n),
                                              W(right-n));
         }
-        return leftdistance >= rightdistance;
+        return leftdistance > rightdistance;
       };
       
       std::priority_queue<IndexType, std::vector<IndexType>,