diff --git a/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h b/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h index 9738ed221b7..99db0a88686 100644 --- a/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h +++ b/AABB_tree/include/CGAL/internal/AABB_tree/AABB_ray_intersection.h @@ -22,11 +22,11 @@ #ifndef CGAL_AABB_RAY_INTERSECTION_H #define CGAL_AABB_RAY_INTERSECTION_H -#include #include #include #include #include +#include #include @@ -47,8 +47,8 @@ public: // nb_primitives through a variable in each Node on the stack. In // BVH_node::traversal this is done through the function parameter // nb_primitives in the recursion. - typedef std::priority_queue< Node_ptr_with_ft, std::vector, - std::greater > Heap_type; + typedef boost::heap::priority_queue< Node_ptr_with_ft, boost::heap::compare< std::greater > > + Heap_type; typename AABB_traits::Intersection intersection_obj = tree_.traits().intersection_object();