diff --git a/AABB_tree/include/CGAL/AABB_tree.h b/AABB_tree/include/CGAL/AABB_tree.h index 111587c5985..037471f84b4 100644 --- a/AABB_tree/include/CGAL/AABB_tree.h +++ b/AABB_tree/include/CGAL/AABB_tree.h @@ -384,7 +384,7 @@ public: /// for which `do_intersect` predicates /// and intersections are defined in the traits class AABBTraits. template - #if CGAL_INTERSECTION_VERSION < 2 + #if CGAL_INTERSECTION_VERSION < 2 && !defined(DOXYGEN_RUNNING) boost::optional #else boost::optional< typename Intersection_and_primitive_id::Type >