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/nullary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/nullary.cpp') diff --git a/test/nullary.cpp b/test/nullary.cpp index 0bde253df..0df15c081 100644 --- a/test/nullary.cpp +++ b/test/nullary.cpp @@ -38,7 +38,7 @@ bool equalsIdentity(const MatrixType& A) } } for (Index i = 0; i < A.rows(); ++i) { - for (Index j = 0; j < std::min(i, A.cols()); ++j) { + for (Index j = 0; j < (std::min)(i, A.cols()); ++j) { offDiagOK = offDiagOK && (A(i,j) == zero); } } -- cgit v1.2.3