diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-01-28 09:55:32 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-01-28 09:55:32 +0100 |
commit | 162d29e696b5163be4b6209a743c3b9bac4e9c13 (patch) | |
tree | f24204fddb18b39e9004b829f88b705d37bbd5b2 /Eigen | |
parent | 22db1a6e82cf9354224c547d003f1fd9d18432a8 (diff) |
fix compilation of sparse module with ICC
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Sparse/DynamicSparseMatrix.h | 12 | ||||
-rw-r--r-- | Eigen/src/Sparse/SparseMatrix.h | 16 |
2 files changed, 8 insertions, 20 deletions
diff --git a/Eigen/src/Sparse/DynamicSparseMatrix.h b/Eigen/src/Sparse/DynamicSparseMatrix.h index 710b978fe..99715d031 100644 --- a/Eigen/src/Sparse/DynamicSparseMatrix.h +++ b/Eigen/src/Sparse/DynamicSparseMatrix.h @@ -279,18 +279,6 @@ class DynamicSparseMatrix return *this; } - template<typename OtherDerived> - inline DynamicSparseMatrix& operator=(const SparseMatrixBase<OtherDerived>& other) - { - return SparseMatrixBase<DynamicSparseMatrix>::operator=(other.derived()); - } - - template<typename OtherDerived> - EIGEN_STRONG_INLINE DynamicSparseMatrix& operator=(const ReturnByValue<OtherDerived>& func) - { - return Base::operator=(func); - } - /** Destructor */ inline ~DynamicSparseMatrix() {} diff --git a/Eigen/src/Sparse/SparseMatrix.h b/Eigen/src/Sparse/SparseMatrix.h index 73ca5945b..190979b44 100644 --- a/Eigen/src/Sparse/SparseMatrix.h +++ b/Eigen/src/Sparse/SparseMatrix.h @@ -85,7 +85,7 @@ class SparseMatrix { public: EIGEN_SPARSE_PUBLIC_INTERFACE(SparseMatrix) - using Base::operator=; +// using Base::operator=; EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATOR(SparseMatrix, +=) EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATOR(SparseMatrix, -=) // FIXME: why are these operator already alvailable ??? @@ -466,15 +466,15 @@ class SparseMatrix #ifndef EIGEN_PARSED_BY_DOXYGEN template<typename Lhs, typename Rhs> inline SparseMatrix& operator=(const SparseSparseProduct<Lhs,Rhs>& product) - { - return Base::operator=(product); - } + { return Base::operator=(product); } template<typename OtherDerived> - EIGEN_STRONG_INLINE SparseMatrix& operator=(const ReturnByValue<OtherDerived>& func) - { - return Base::operator=(func); - } + inline SparseMatrix& operator=(const ReturnByValue<OtherDerived>& other) + { return Base::operator=(other); } + + template<typename OtherDerived> + inline SparseMatrix& operator=(const EigenBase<OtherDerived>& other) + { return Base::operator=(other); } #endif template<typename OtherDerived> |