aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseUnaryOp.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseUnaryOp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h
index 0095a1572..3ffb24833 100644
--- a/Eigen/src/Core/CwiseUnaryOp.h
+++ b/Eigen/src/Core/CwiseUnaryOp.h
@@ -96,7 +96,8 @@ class CwiseUnaryOp : ei_no_assignment_operator,
const UnaryOp& _functor() const { return m_functor; }
/** \internal used for introspection */
- const typename MatrixType::Nested& _expression() const { return m_matrix; }
+ const typename ei_cleantype<typename MatrixType::Nested>::type&
+ _expression() const { return m_matrix; }
protected:
const typename MatrixType::Nested m_matrix;