compile fix for code like Vector3d::Random().x()

This commit is contained in:
Benoit Jacob 2008-08-23 02:19:03 +00:00
parent 0e60e22151
commit 312013a089

View File

@ -91,7 +91,10 @@ class CwiseNullaryOp : ei_no_assignment_operator,
const Scalar coeff(int index) const
{
return m_functor(index);
if(RowsAtCompileTime == 1)
return m_functor(0, index);
else
return m_functor(index, 0);
}
template<int LoadMode>