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/stable_norm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/stable_norm.cpp') diff --git a/test/stable_norm.cpp b/test/stable_norm.cpp index 5bf249577..206a274d6 100644 --- a/test/stable_norm.cpp +++ b/test/stable_norm.cpp @@ -68,8 +68,8 @@ template void stable_norm(const MatrixType& m) Index rows = m.rows(); Index cols = m.cols(); - Scalar big = internal::random() * (std::numeric_limits::max() * RealScalar(1e-4)); - Scalar small = internal::random() * (std::numeric_limits::min() * RealScalar(1e4)); + Scalar big = internal::random() * ((std::numeric_limits::max)() * RealScalar(1e-4)); + Scalar small = internal::random() * ((std::numeric_limits::min)() * RealScalar(1e4)); MatrixType vzero = MatrixType::Zero(rows, cols), vrand = MatrixType::Random(rows, cols), -- cgit v1.2.3