aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseUnaryView.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-01-17 18:27:49 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-01-17 18:27:49 +0100
commitee3662abc57230dbe7bf6e5259f335f7fa4750f1 (patch)
treea9c307fc81b14631e812711923f47a13d5428fb4 /Eigen/src/Core/CwiseUnaryView.h
parent0fe6b7d687430fd1fe2d390da2f09fcb8ddc8093 (diff)
Remove some useless const_cast
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryView.h')
-rw-r--r--Eigen/src/Core/CwiseUnaryView.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/CwiseUnaryView.h b/Eigen/src/Core/CwiseUnaryView.h
index 271033056..21cf5ea9e 100644
--- a/Eigen/src/Core/CwiseUnaryView.h
+++ b/Eigen/src/Core/CwiseUnaryView.h
@@ -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;