remove CGAL_assertion_code hidding variables used in assert

This commit is contained in:
Sébastien Loriot
2015-07-16 08:51:22 +02:00
parent a25297a5c9
commit bcfb705df0
2 changed files with 5 additions and 5 deletions
@@ -34,13 +34,13 @@ void test(const char* filename)
}
//try to fair the mesh
CGAL_assertion_code(std::size_t nbv =
std::distance(vertices(poly).first, vertices(poly).second));
std::size_t nbv =
std::distance(vertices(poly).first, vertices(poly).second);
CGAL::Polygon_mesh_processing::fair(poly, vertices(poly));
CGAL_assertion_code(std::size_t nbv2 =
std::distance(vertices(poly).first, vertices(poly).second));
std::size_t nbv2 =
std::distance(vertices(poly).first, vertices(poly).second);
assert(nbv == nbv2);