From cedea2aba459a131459af9fd69d4c42eef7394da Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Fri, 11 Jun 2010 07:59:59 +0200 Subject: [PATCH] Fixed warnings regarding missing assignment operator. --- unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h | 2 ++ unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index 5d47f2cec..a4d827746 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -323,6 +323,8 @@ template struct MatrixExponentialReturnValue protected: const Derived& m_src; + private: + MatrixExponentialReturnValue& operator=(const MatrixExponentialReturnValue&); }; template diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h index be27c5037..c16341b17 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h @@ -116,9 +116,10 @@ class MatrixFunction } private: - const MatrixType& m_A; /**< \brief Reference to argument of matrix function. */ StemFunction *m_f; /**< \brief Stem function for matrix function under consideration */ + + MatrixFunction& operator=(const MatrixFunction&); }; @@ -182,6 +183,8 @@ class MatrixFunction * separation constant is set to 0.1, a value taken from the * paper by Davies and Higham. */ static const RealScalar separation() { return static_cast(0.1); } + + MatrixFunction& operator=(const MatrixFunction&); }; /** \brief Constructor. @@ -526,6 +529,8 @@ template class MatrixFunctionReturnValue private: const Derived& m_A; StemFunction *m_f; + + MatrixFunctionReturnValue& operator=(const MatrixFunctionReturnValue&); }; template