From 77f4e02022372dea8e91efe3823ec782806fbb16 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 18 Jan 2012 11:19:51 +0000 Subject: [PATCH] Fix for Windows 'min/max' bug --- Distance_3/test/Distance_3/test_distance_3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Distance_3/test/Distance_3/test_distance_3.cpp b/Distance_3/test/Distance_3/test_distance_3.cpp index c6d8c6581b8..77dc0b37704 100644 --- a/Distance_3/test/Distance_3/test_distance_3.cpp +++ b/Distance_3/test/Distance_3/test_distance_3.cpp @@ -71,7 +71,7 @@ struct Test { { if (t1 == t2) return true; - if (CGAL::abs(t1 - t2) / CGAL::max(CGAL::abs(t1), CGAL::abs(t2)) < epsilon) + if (CGAL::abs(t1 - t2) / (CGAL::max)(CGAL::abs(t1), CGAL::abs(t2)) < epsilon) return true; std::cout << " Approximate comparison failed between : " << t1 << " and " << t2 << "\n"; return false;