diff --git a/Algebraic_foundations/test/Algebraic_foundations/Chinese_remainder_traits.cpp b/Algebraic_foundations/test/Algebraic_foundations/Chinese_remainder_traits.cpp index 5a7dcacd3e6..b28013d6fcb 100644 --- a/Algebraic_foundations/test/Algebraic_foundations/Chinese_remainder_traits.cpp +++ b/Algebraic_foundations/test/Algebraic_foundations/Chinese_remainder_traits.cpp @@ -55,7 +55,7 @@ struct Get_max_coefficient >{ result_type operator () (const CGAL::Sqrt_extension& a) { GMC gmc; - return std::max(std::max(gmc(a.a0()), gmc(a.a1())), gmc(NT(a.root()))); + return (std::max)((std::max)(gmc(a.a0()), gmc(a.a1())), gmc(NT(a.root()))); } }; @@ -68,7 +68,7 @@ struct Get_max_coefficient >{ GMC gmc; result_type m=0; for(int i=0; i<=a.degree(); i++){ - m = std::max(gmc(a[i]),m); + m = (std::max)(gmc(a[i]),m); } return m; }