mirror of https://github.com/CGAL/cgal
Use numeric_limits
This commit is contained in:
parent
e354f7ce4d
commit
ae07848870
|
|
@ -47,8 +47,8 @@ struct box_limits<unsigned int> {
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct box_limits<float> {
|
struct box_limits<float> {
|
||||||
static float inf() { return -sup(); }
|
static float inf() { return (std::numeric_limits<float>::min)(); }
|
||||||
static float sup() { return CGALi::infinity; }
|
static float sup() { return (std::numeric_limits<float>::max)(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue