diff options
Diffstat (limited to 'src/Core/Sum.h')
-rw-r--r-- | src/Core/Sum.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Core/Sum.h b/src/Core/Sum.h index 2b3ec5807..49968c238 100644 --- a/src/Core/Sum.h +++ b/src/Core/Sum.h @@ -31,8 +31,8 @@ template<typename Lhs, typename Rhs> class Sum { public: typedef typename Lhs::Scalar Scalar; - typedef typename Lhs::ConstRef LhsRef; - typedef typename Rhs::ConstRef RhsRef; + typedef typename Lhs::Ref LhsRef; + typedef typename Rhs::Ref RhsRef; friend class Object<Scalar, Sum>; static const int RowsAtCompileTime = Lhs::RowsAtCompileTime, @@ -50,9 +50,7 @@ template<typename Lhs, typename Rhs> class Sum EI_INHERIT_ASSIGNMENT_OPERATORS(Sum) private: - const Sum& _ref() const { return *this; } - const Sum& _constRef() const { return *this; } int _rows() const { return m_lhs.rows(); } int _cols() const { return m_lhs.cols(); } @@ -70,7 +68,7 @@ template<typename Scalar, typename Derived1, typename Derived2> Sum<Derived1, Derived2> operator+(const Object<Scalar, Derived1> &mat1, const Object<Scalar, Derived2> &mat2) { - return Sum<Derived1, Derived2>(mat1.constRef(), mat2.constRef()); + return Sum<Derived1, Derived2>(mat1.ref(), mat2.ref()); } template<typename Scalar, typename Derived> |