From a76fbbf39777827200455477a9e3557b6063913f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 6 Nov 2012 15:25:50 +0100 Subject: Fix bug #314: - remove most of the metaprogramming kung fu in MathFunctions.h (only keep functions that differs from the std) - remove the overloads for array expression that were in the std namespace --- unsupported/test/mpreal/mpreal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/test/mpreal') diff --git a/unsupported/test/mpreal/mpreal.h b/unsupported/test/mpreal/mpreal.h index 5afe47956..ca243ac86 100644 --- a/unsupported/test/mpreal/mpreal.h +++ b/unsupported/test/mpreal/mpreal.h @@ -3194,7 +3194,7 @@ namespace std } } - inline static mpfr::mpreal min(mp_prec_t precision = mpfr::mpreal::get_default_prec()) + inline static mpfr::mpreal (min)(mp_prec_t precision = mpfr::mpreal::get_default_prec()) { // min = 1/2*2^emin = 2^(emin-1) return mpfr::mpreal(1, precision) << mpfr::mpreal::get_emin()-1; @@ -3205,7 +3205,7 @@ namespace std return (-(max)(precision)); } - inline static mpfr::mpreal max(mp_prec_t precision = mpfr::mpreal::get_default_prec()) + inline static mpfr::mpreal (max)(mp_prec_t precision = mpfr::mpreal::get_default_prec()) { // max = (1-eps)*2^emax, eps is machine epsilon return (mpfr::mpreal(1, precision) - epsilon(precision)) << mpfr::mpreal::get_emax(); -- cgit v1.2.3