From ae078488700d5b9bffde4894d41a12b0533bbfee Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 13 Oct 2008 17:32:32 +0000 Subject: [PATCH] Use numeric_limits --- .../include/CGAL/Box_intersection_d/box_limits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Box_intersection_d/include/CGAL/Box_intersection_d/box_limits.h b/Box_intersection_d/include/CGAL/Box_intersection_d/box_limits.h index c5f07e352b0..ed6db60cb31 100644 --- a/Box_intersection_d/include/CGAL/Box_intersection_d/box_limits.h +++ b/Box_intersection_d/include/CGAL/Box_intersection_d/box_limits.h @@ -47,8 +47,8 @@ struct box_limits { template<> struct box_limits { - static float inf() { return -sup(); } - static float sup() { return CGALi::infinity; } + static float inf() { return (std::numeric_limits::min)(); } + static float sup() { return (std::numeric_limits::max)(); } }; template<>