MSVC needs parentheses around min and max

This commit is contained in:
Desire NUENTSA
2012-09-28 10:44:25 +02:00
parent 87074d97e5
commit b68102d9a2
7 changed files with 12 additions and 12 deletions

View File

@@ -88,7 +88,7 @@ void SparseLUBase<Scalar,Index>::LU_heap_relax_snode (const int n, IndexVector&
++nsuper_et_post;
k = n;
for (i = snode_start; i <= j; ++i)
k = std::min(k, inv_post(i));
k = (std::min)(k, inv_post(i));
l = inv_post(j);
if ( (l - k) == (j - snode_start) ) // Same number of columns in the snode
{