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_vector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/sparse_vector.cpp') diff --git a/test/sparse_vector.cpp b/test/sparse_vector.cpp index b3249915e..5be4f5d9a 100644 --- a/test/sparse_vector.cpp +++ b/test/sparse_vector.cpp @@ -26,8 +26,8 @@ template void sparse_vector(int rows, int cols) { - double densityMat = std::max(8./(rows*cols), 0.01); - double densityVec = std::max(8./float(rows), 0.1); + double densityMat = (std::max)(8./(rows*cols), 0.01); + double densityVec = (std::max)(8./float(rows), 0.1); typedef Matrix DenseMatrix; typedef Matrix DenseVector; typedef SparseVector SparseVectorType; -- cgit v1.2.3