Fix Tensor module wrt nullary functor recent change

This commit is contained in:
Gael Guennebaud 2015-08-09 21:20:24 +02:00
parent febcce34f1
commit 0d5e673baa

View File

@ -233,7 +233,7 @@ struct TensorEvaluator<const TensorCwiseNullaryOp<NullaryOp, ArgType>, Device>
template<int LoadMode>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
{
return m_functor.packetOp(index);
return m_functor.template packetOp<Index,PacketReturnType>(index);
}
EIGEN_DEVICE_FUNC CoeffReturnType* data() const { return NULL; }