From 7baa1ba03eed515f6b202490a3200c90db8ba18d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 15 Jun 2015 22:40:18 +0200 Subject: Remove the usage of result_of for DenseBase::redux as discussed in bug #1006 --- Eigen/src/Core/DenseBase.h | 3 +-- Eigen/src/Core/Redux.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'Eigen/src') diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index 361462e54..4e03e4a56 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -435,8 +435,7 @@ template class DenseBase template EIGEN_DEVICE_FUNC - typename internal::result_of::Scalar,typename internal::traits::Scalar)>::type - redux(const BinaryOp& func) const; + Scalar redux(const BinaryOp& func) const; template EIGEN_DEVICE_FUNC diff --git a/Eigen/src/Core/Redux.h b/Eigen/src/Core/Redux.h index f704fd07b..fea4e2895 100644 --- a/Eigen/src/Core/Redux.h +++ b/Eigen/src/Core/Redux.h @@ -406,7 +406,7 @@ protected: */ template template -EIGEN_STRONG_INLINE typename internal::result_of::Scalar,typename internal::traits::Scalar)>::type +typename internal::traits::Scalar DenseBase::redux(const Func& func) const { eigen_assert(this->rows()>0 && this->cols()>0 && "you are using an empty matrix"); -- cgit v1.2.3