Remove some useless const_cast

This commit is contained in:
Gael Guennebaud
2019-01-17 18:27:49 +01:00
parent 0fe6b7d687
commit ee3662abc5
4 changed files with 4 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename in
/** \returns the nested expression */
typename internal::remove_reference<MatrixTypeNested>::type&
nestedExpression() { return m_matrix.const_cast_derived(); }
nestedExpression() { return m_matrix; }
protected:
MatrixTypeNested m_matrix;