diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-09-01 13:06:14 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-09-01 13:06:14 +0200 |
commit | f9f32e9e2d2b6a9c89b83232d5290c956b175561 (patch) | |
tree | 0e10673247dd17134d9f38eb6b5641be11c696b2 /Eigen/src/Core/CoreEvaluators.h | |
parent | 3d946e42b314d9a80a82f5551098a99529b93fc7 (diff) |
Fix compilation with nvcc
Diffstat (limited to 'Eigen/src/Core/CoreEvaluators.h')
-rw-r--r-- | Eigen/src/Core/CoreEvaluators.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/CoreEvaluators.h b/Eigen/src/Core/CoreEvaluators.h index 01678c6c2..41f29e793 100644 --- a/Eigen/src/Core/CoreEvaluators.h +++ b/Eigen/src/Core/CoreEvaluators.h @@ -353,8 +353,8 @@ struct nullary_wrapper template<typename Scalar,typename NullaryOp> struct nullary_wrapper<Scalar,NullaryOp,true,false,false> { - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar operator()(const NullaryOp& op, ...) const { return op(); } - template <typename T> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T packetOp(const NullaryOp& op, ...) const { return op.template packetOp<T>(); } + EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar operator()(const NullaryOp& op, Index=0, Index=0) const { return op(); } + template <typename T> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T packetOp(const NullaryOp& op, Index=0, Index=0) const { return op.template packetOp<T>(); } }; template<typename Scalar,typename NullaryOp> |