diff --git a/cpp/daal/include/algorithms/pca/pca_explained_variance_batch.h b/cpp/daal/include/algorithms/pca/pca_explained_variance_batch.h index 827002ca1c1..30f01c150a5 100644 --- a/cpp/daal/include/algorithms/pca/pca_explained_variance_batch.h +++ b/cpp/daal/include/algorithms/pca/pca_explained_variance_batch.h @@ -109,6 +109,8 @@ class Batch : public daal::algorithms::quality_metric::Batch input.set(eigenvalues, other.input.get(eigenvalues)); } + ~Batch() = default; + /** * Returns the method of the algorithm * \return Method of the algorithm diff --git a/cpp/daal/include/algorithms/pca/pca_types.h b/cpp/daal/include/algorithms/pca/pca_types.h index c3fb0846cb8..8f30eabed0c 100644 --- a/cpp/daal/include/algorithms/pca/pca_types.h +++ b/cpp/daal/include/algorithms/pca/pca_types.h @@ -200,6 +200,7 @@ class DAAL_EXPORT Input : public InputIface public: Input(); Input(const Input & other); + Input & operator=(const Input & other); virtual ~Input() {}; @@ -556,6 +557,7 @@ class DistributedInput : public InputIface public: DAAL_EXPORT DistributedInput(); DAAL_EXPORT DistributedInput(const DistributedInput & other); + DAAL_EXPORT DistributedInput operator=(const DistributedInput & other); /** * Sets input objects for the PCA on the second step in the distributed processing mode diff --git a/cpp/daal/src/algorithms/pca/pca_input.cpp b/cpp/daal/src/algorithms/pca/pca_input.cpp index e4e8a6dfe12..1f89f9ccdab 100644 --- a/cpp/daal/src/algorithms/pca/pca_input.cpp +++ b/cpp/daal/src/algorithms/pca/pca_input.cpp @@ -40,7 +40,7 @@ InputIface::InputIface(const InputIface & other) : daal::algorithms::Input(other Input::Input() : InputIface(lastInputDatasetId + 1) {}; Input::Input(const Input & other) : InputIface(other) {} - +Input & Input::operator=(const Input & other) = default; /** * Returns the input object of the PCA algorithm * \param[in] id Identifier of the input object diff --git a/cpp/daal/src/algorithms/pca/pca_result_impl.h b/cpp/daal/src/algorithms/pca/pca_result_impl.h index c87b157f084..5617b4397c6 100644 --- a/cpp/daal/src/algorithms/pca/pca_result_impl.h +++ b/cpp/daal/src/algorithms/pca/pca_result_impl.h @@ -44,6 +44,7 @@ class ResultImpl : public data_management::DataCollection bool isWhitening; ResultImpl(const size_t n) : DataCollection(n), isWhitening(false) {} ResultImpl(const ResultImpl & o) : DataCollection(o), isWhitening(o.isWhitening) {} + ResultImpl & operator=(const ResultImpl & o) = default; virtual ~ResultImpl() {}; /**