aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Reshaped.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-01-17 17:35:32 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-01-17 17:35:32 +0100
commit4b7cf7ff82a5bfa252dd2e00b449073272482d65 (patch)
tree36a3df2fdf954424baa68cea83e838bd380dba91 /Eigen/src/Core/Reshaped.h
parentb57c9787b1b7c7436f95814cab6e3551f49dda6f (diff)
Extend reshaped unit tests and remove useless const_cast
Diffstat (limited to 'Eigen/src/Core/Reshaped.h')
-rw-r--r--Eigen/src/Core/Reshaped.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Reshaped.h b/Eigen/src/Core/Reshaped.h
index b7bd1b292..c955815e6 100644
--- a/Eigen/src/Core/Reshaped.h
+++ b/Eigen/src/Core/Reshaped.h
@@ -191,7 +191,7 @@ class ReshapedImpl_dense<XprType,Rows,Cols,Order,false>
/** \returns the nested expression */
EIGEN_DEVICE_FUNC
typename internal::remove_reference<XprType>::type&
- nestedExpression() { return m_xpr.const_cast_derived(); }
+ nestedExpression() { return m_xpr; }
protected: