more replacements

This commit is contained in:
Andreas Fabri 2024-09-25 17:05:52 +01:00
parent 33812aa8a0
commit b27baeb945
4 changed files with 4 additions and 7 deletions

View File

@ -229,7 +229,7 @@ public:
approx_ = Approx_squared_radius()( to_approx(*data().p0),to_approx(*data().p1),to_approx(*data().p2) ); approx_ = Approx_squared_radius()( to_approx(*data().p0),to_approx(*data().p1),to_approx(*data().p2) );
break; break;
default: default:
CGAL_unreachable()); CGAL_unreachable();
} }
} }

View File

@ -99,10 +99,7 @@ public:
): cone_number(k), cones_choice(cones_selected), rays(std::vector<Direction_2>(k)) ): cone_number(k), cones_choice(cones_selected), rays(std::vector<Direction_2>(k))
{ {
if (k<2) { CGAL_assertion_msg(k>1, "The number of cones must be larger than 1");
std::cout << "The number of cones must be larger than 1!" << std::endl;
CGAL_assertion(false);
}
/* Initialize a functor, specialization will happen here depending on the kernel type to /* Initialize a functor, specialization will happen here depending on the kernel type to
compute the cone boundaries either exactly or inexactly */ compute the cone boundaries either exactly or inexactly */

View File

@ -414,7 +414,7 @@ private:
return true; return true;
} }
CGAL_assertion(false); CGAL_unreachable();
return false; return false;
} }

View File

@ -1940,7 +1940,7 @@ private:
else if(is_on_mesh(h)) nb_mesh++; else if(is_on_mesh(h)) nb_mesh++;
else if(is_on_border(h)) nb_border++; else if(is_on_border(h)) nb_border++;
else if(is_an_isolated_constraint(h)) nb_isolated++; else if(is_an_isolated_constraint(h)) nb_isolated++;
else CGAL_assertion(false); else CGAL_unreachable();
} }
CGAL_USE(nb_border); CGAL_USE(nb_border);
CGAL_USE(nb_mesh); CGAL_USE(nb_mesh);