From 5cc3180dc6cc306b504d57769210b04973067827 Mon Sep 17 00:00:00 2001 From: Jules Vidal Date: Fri, 6 Oct 2023 14:52:36 +0200 Subject: [PATCH 1/2] Fixed building errors on Linux --- .../KnnGraph/Query/knnGraphRangeQuery.h | 4 ++-- Ponca/src/SpatialPartitioning/KnnGraph/knnGraph.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Ponca/src/SpatialPartitioning/KnnGraph/Query/knnGraphRangeQuery.h b/Ponca/src/SpatialPartitioning/KnnGraph/Query/knnGraphRangeQuery.h index e2de75b13..4c62a118f 100644 --- a/Ponca/src/SpatialPartitioning/KnnGraph/Query/knnGraphRangeQuery.h +++ b/Ponca/src/SpatialPartitioning/KnnGraph/Query/knnGraphRangeQuery.h @@ -39,14 +39,14 @@ class KnnGraphRangeQuery : public RangeIndexQueryinitialize(it); this->advance(it); return it; } inline Iterator end(){ - return KnnGraphRangeIterator(this, m_graph->size()); + return Iterator(this, m_graph->size()); } protected: diff --git a/Ponca/src/SpatialPartitioning/KnnGraph/knnGraph.h b/Ponca/src/SpatialPartitioning/KnnGraph/knnGraph.h index 82db40629..4433dd36e 100644 --- a/Ponca/src/SpatialPartitioning/KnnGraph/knnGraph.h +++ b/Ponca/src/SpatialPartitioning/KnnGraph/knnGraph.h @@ -73,11 +73,11 @@ template class KnnGraphBase : m_k(std::min(k,kdtree.index_count()-1)), m_kdTreePoints(kdtree.point_data()) { - static_assert( std::is_same_v, + static_assert( std::is_same::value, "KdTreeTraits::DataPoint is not equal to Traits::DataPoint" ); - static_assert( std::is_same_v, + static_assert( std::is_same::value, "KdTreeTraits::PointContainer is not equal to Traits::PointContainer" ); - static_assert( std::is_same_v, + static_assert( std::is_same::value, "KdTreeTraits::IndexContainer is not equal to Traits::IndexContainer" ); // We need to account for the entire point set, irrespectively of the sampling. This is because the kdtree @@ -107,7 +107,7 @@ template class KnnGraphBase // Query ------------------------------------------------------------------- public: inline KNearestIndexQuery k_nearest_neighbors(int index) const{ - return KnnGraphKNearestQuery(this, index); + return KNearestIndexQuery(this, index); } inline RangeIndexQuery range_neighbors(int index, Scalar r) const{ From e7d0eb244cd350d570da7d00bc027360fd42d2be Mon Sep 17 00:00:00 2001 From: Nicolas Mellado Date: Fri, 6 Oct 2023 15:07:02 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index cbce734b4..4040a00b6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,7 @@ Current head (v.1.2 RC) - Bug-fixes and code improvements - [fitting] Use variadic template for basket extensions (#85) - [fitting] Fix current status issue (#108) + - [spatialPartitioning] Fix potential compilation issues in KnnGraph (#111) -Docs - [fitting] Clarify documentation on FIT_RESULT (#108)