Fix for Windows 'min/max' bug

This commit is contained in:
Andreas Fabri 2012-01-18 11:19:51 +00:00
parent cfbf3b9eeb
commit 77f4e02022
1 changed files with 1 additions and 1 deletions

View File

@ -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;