aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseUnaryOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-07-29 16:33:07 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-07-29 16:33:07 +0000
commit842c4f8bfa51008ab13919225f95b56e6cbcc655 (patch)
tree777584717ed1737ab1527c36d5392d1016f1d2c9 /Eigen/src/Core/CwiseUnaryOp.h
parente0215ee5101ad0d656509902bdb46ab61551865e (diff)
Several compilation fixes for MSVC and NVCC, basically:
- added explicit enum to int conversion where needed - if a function is not defined as declared and the return type is "tricky" then the type must be typedefined somewhere. A "tricky return type" can be: * a template class with a default parameter which depends on another template parameter * a nested template class, or type of a nested template class
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseUnaryOp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h
index b5a9e4d91..bb354958e 100644
--- a/Eigen/src/Core/CwiseUnaryOp.h
+++ b/Eigen/src/Core/CwiseUnaryOp.h
@@ -137,7 +137,7 @@ MatrixBase<Derived>::operator-() const
/** \returns an expression of the coefficient-wise absolute value of \c *this
*/
template<typename ExpressionType>
-inline const typename Cwise<ExpressionType>::template UnOp<ei_scalar_abs_op>::ReturnType
+inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_abs_op)
Cwise<ExpressionType>::abs() const
{
return _expression();
@@ -146,7 +146,7 @@ Cwise<ExpressionType>::abs() const
/** \returns an expression of the coefficient-wise squared absolute value of \c *this
*/
template<typename ExpressionType>
-inline const typename Cwise<ExpressionType>::template UnOp<ei_scalar_abs2_op>::ReturnType
+inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_abs2_op)
Cwise<ExpressionType>::abs2() const
{
return _expression();