diff --git a/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h b/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h index c575c1986e5..6dd604a7c78 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h +++ b/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h @@ -30,6 +30,9 @@ #include #include +#ifndef CGAL_NO_ASSERTIONS +# include // for float_prior +#endif namespace CGAL { namespace Mesh_3 { @@ -981,7 +984,9 @@ insert_balls(const Vertex_handle& vp, pt_dist = d_signF * step_size; norm_step_size = step_size; } else { - CGAL_assertion(n==0 || dleft_frac >= 1); + CGAL_assertion_code(using boost::math::float_prior); + CGAL_assertion(n==0 || + dleft_frac >= float_prior(float_prior(1.))); } // Launch balls