diff --git a/Mesh_3/include/CGAL/internal/Mesh_3/check_weights.h b/Mesh_3/include/CGAL/internal/Mesh_3/check_weights.h index 71652287a6b..39eaae34cf7 100644 --- a/Mesh_3/include/CGAL/internal/Mesh_3/check_weights.h +++ b/Mesh_3/include/CGAL/internal/Mesh_3/check_weights.h @@ -42,8 +42,7 @@ template bool has_non_protecting_weights(const Triangulation& tr, const MeshDomain&) { - bool with_features = - boost::is_same, CGAL::Tag_true>::value; + const bool with_features = Has_features::value; typedef typename Triangulation::FT FT; typedef typename Triangulation::Weighted_point Weighted_point; @@ -59,7 +58,12 @@ bool has_non_protecting_weights(const Triangulation& tr, const Weighted_point& vv_wp = tr.point(vv); if (cwsr(vv_wp, FT(0)) != CGAL::EQUAL) { - if (with_features && vv->in_dimension() > 1) + if (with_features) + { + if (vv->in_dimension() > 1) + return true; + } + else return true; } }