diff --git a/Point_inside_Polyhedron/include/CGAL/Point_inside_polyhedron_3.h b/Point_inside_Polyhedron/include/CGAL/Point_inside_polyhedron_3.h index b4b587dd4b9..9f648d317ef 100644 --- a/Point_inside_Polyhedron/include/CGAL/Point_inside_polyhedron_3.h +++ b/Point_inside_Polyhedron/include/CGAL/Point_inside_polyhedron_3.h @@ -308,7 +308,8 @@ private: template boost::logic::tribool is_inside_ray_tree_traversal(const Query& query) const { - std::pair status(boost::logic::indeterminate,0); + std::pair status( + boost::logic::tribool(boost::logic::indeterminate), 0); Ray_3_Triangle_3_traversal_traits > traversal_traits(status); tree.traversal(query, traversal_traits); if ( !boost::logic::indeterminate(status.first) ){ @@ -335,9 +336,9 @@ public: if(N>0) { Vector v = p - grid_base; - int i = boost::math::round(v.x() / grid_dx); - int j = boost::math::round(v.y() / grid_dy); - int k = boost::math::round(v.z() / grid_dz); + int i = boost::math::iround(v.x() / grid_dx); + int j = boost::math::iround(v.y() / grid_dy); + int k = boost::math::iround(v.z() / grid_dz); if(i>N-1)i=N-1; if(j>N-1)j=N-1;