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/prec_inverse_4x4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/prec_inverse_4x4.cpp') diff --git a/test/prec_inverse_4x4.cpp b/test/prec_inverse_4x4.cpp index c40cf7399..8ae8311a7 100644 --- a/test/prec_inverse_4x4.cpp +++ b/test/prec_inverse_4x4.cpp @@ -58,7 +58,7 @@ template void inverse_general_4x4(int repeat) MatrixType inv = m.inverse(); double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits::epsilon() ); error_sum += error; - error_max = std::max(error_max, error); + error_max = (std::max)(error_max, error); } std::cerr << "inverse_general_4x4, Scalar = " << type_name() << std::endl; double error_avg = error_sum / repeat; -- cgit v1.2.3