diff --git a/Intersections_3/include/CGAL/internal/Intersections_3/Bbox_3_Segment_3_do_intersect.h b/Intersections_3/include/CGAL/internal/Intersections_3/Bbox_3_Segment_3_do_intersect.h index ca5aae2e628..58d08b306b8 100644 --- a/Intersections_3/include/CGAL/internal/Intersections_3/Bbox_3_Segment_3_do_intersect.h +++ b/Intersections_3/include/CGAL/internal/Intersections_3/Bbox_3_Segment_3_do_intersect.h @@ -25,6 +25,7 @@ #include #include +#include // inspired from http://cag.csail.mit.edu/~amy/papers/box-jgt.pdf @@ -41,12 +42,12 @@ namespace CGAL { namespace internal { - template - struct Do_intersect_bbox_segment_aux_is_greater { - typedef bool result_type; + template + struct Do_intersect_bbox_segment_aux_is_greater + { + typedef typename Same_uncertainty::type result_type; - template - bool operator()(const FT& a, const FT& b) const { + result_type operator()(const FT& a, const FT& b) const { return a > b; } }; @@ -267,7 +268,7 @@ namespace internal { CGAL_assertion(dzmin >= 0); CGAL_assertion(dzmax >= 0); - typedef Do_intersect_bbox_segment_aux_is_greater Is_greater; + typedef Do_intersect_bbox_segment_aux_is_greater Is_greater; typedef typename Is_greater::result_type Is_greater_value; Is_greater is_greater;