Fixes min() warnings.

This commit is contained in:
Robert Lukierski
2016-10-12 18:59:05 +01:00
parent 86711497c4
commit 471075f7ad
4 changed files with 9 additions and 9 deletions

View File

@@ -753,7 +753,7 @@ struct setIdentity_impl<Derived, true>
{
m.setZero();
EIGEN_USING_STD_MATH(min)
const Index size = min(m.rows(), m.cols());
const Index size = (min)(m.rows(), m.cols());
for(Index i = 0; i < size; ++i) m.coeffRef(i,i) = typename Derived::Scalar(1);
return m;
}