From 553bb7956e4d85fd8978d49913f3fb5b8a4cc566 Mon Sep 17 00:00:00 2001 From: Takahiro Poly Horikawa Date: Fri, 28 Nov 2014 19:33:52 +0900 Subject: [PATCH] Fix "assignment operator could not be generated" warnings --- modules/flann/include/opencv2/flann/kmeans_index.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/flann/include/opencv2/flann/kmeans_index.h b/modules/flann/include/opencv2/flann/kmeans_index.h index e0ee961..b49b8dd 100644 --- a/modules/flann/include/opencv2/flann/kmeans_index.h +++ b/modules/flann/include/opencv2/flann/kmeans_index.h @@ -275,7 +275,7 @@ public: { public: KMeansDistanceComputer(Distance _distance, const Matrix& _dataset, - const int _branching, const int* _indices, const Matrix& _dcenters, const int _veclen, + const int _branching, const int* _indices, const Matrix& _dcenters, const size_t _veclen, int* _count, int* _belongs_to, std::vector& _radiuses, bool& _converged, cv::Mutex& _mtx) : distance(_distance) , dataset(_dataset) @@ -324,15 +324,16 @@ public: private: Distance distance; const Matrix& dataset; - int branching; + const int branching; const int* indices; const Matrix& dcenters; - int veclen; + const size_t veclen; int* count; int* belongs_to; std::vector& radiuses; bool& converged; cv::Mutex& mtx; + KMeansDistanceComputer& operator=( const KMeansDistanceComputer & ) { return *this; } }; /** -- 2.7.4