From 42e2578ef9fcbb62ad6e07933ccf531f6f7cd1b3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 19 Aug 2011 14:18:05 +0200 Subject: the min/max macros to detect unprotected min/max were undefined by some std header, so let's declare them after and do the respective fixes ;) --- test/sparse_solvers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sparse_solvers.cpp') diff --git a/test/sparse_solvers.cpp b/test/sparse_solvers.cpp index aba61e6c0..12a1cb9b6 100644 --- a/test/sparse_solvers.cpp +++ b/test/sparse_solvers.cpp @@ -47,7 +47,7 @@ initSPD(double density, template void sparse_solvers(int rows, int cols) { - double density = std::max(8./(rows*cols), 0.01); + double density = (std::max)(8./(rows*cols), 0.01); typedef Matrix DenseMatrix; typedef Matrix DenseVector; // Scalar eps = 1e-6; -- cgit v1.2.3