Commit cce26e58 authored by Anatoly Baksheev's avatar Anatoly Baksheev

fixed warning: can't generate assignment operator

parent 05ece243
...@@ -314,6 +314,9 @@ public: ...@@ -314,6 +314,9 @@ public:
private: private:
KDTreeIndex& operator=(const KDTreeIndex&);
KDTreeIndex(const KDTreeIndex&);
void save_tree(FILE* stream, Tree tree) void save_tree(FILE* stream, Tree tree)
{ {
......
...@@ -596,6 +596,8 @@ public: ...@@ -596,6 +596,8 @@ public:
private: private:
KMeansIndex& operator=(const KMeansIndex&);
KMeansIndex(const KMeansIndex&);
void save_tree(FILE* stream, KMeansNode node) void save_tree(FILE* stream, KMeansNode node)
{ {
......
...@@ -54,6 +54,9 @@ class LinearIndex : public NNIndex<ELEM_TYPE> ...@@ -54,6 +54,9 @@ class LinearIndex : public NNIndex<ELEM_TYPE>
const Matrix<ELEM_TYPE> dataset; const Matrix<ELEM_TYPE> dataset;
const LinearIndexParams& index_params; const LinearIndexParams& index_params;
LinearIndex(const LinearIndex&);
LinearIndex& operator=(const LinearIndex&);
public: public:
LinearIndex(const Matrix<ELEM_TYPE>& inputData, const LinearIndexParams& params = LinearIndexParams() ) : LinearIndex(const Matrix<ELEM_TYPE>& inputData, const LinearIndexParams& params = LinearIndexParams() ) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment