Explorar el Código

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

Nico Schertler hace 6 años
padre
commit
9621a87edd
Se han modificado 1 ficheros con 1 adiciones y 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>,