diff --git a/CGAL_ImageIO/include/CGAL/Image_3_impl.h b/CGAL_ImageIO/include/CGAL/Image_3_impl.h index 7fda2193521..d5bc8f4f5a3 100644 --- a/CGAL_ImageIO/include/CGAL/Image_3_impl.h +++ b/CGAL_ImageIO/include/CGAL/Image_3_impl.h @@ -25,6 +25,7 @@ #endif #include +#include namespace CGAL { @@ -221,7 +222,7 @@ Image_3::read_vtk_image_data(vtkImageData* vtk_image) std::cerr << "GetNumberOfTuples()=" << vtk_image->GetPointData()->GetScalars()->GetNumberOfTuples() << "\nimage->size()=" << dims[0]*dims[1]*dims[2] << "\nwdim=" << image->wdim << '\n'; - assert(vtk_image->GetPointData()->GetScalars()->GetNumberOfTuples() == dims[0]*dims[1]*dims[2]); + CGAL_assertion(vtk_image->GetPointData()->GetScalars()->GetNumberOfTuples() == dims[0]*dims[1]*dims[2]); vtk_image->GetPointData()->GetScalars()->ExportToVoidPointer(image->data); return this->private_read(image); diff --git a/Combinatorial_map/include/CGAL/Combinatorial_map_save_load.h b/Combinatorial_map/include/CGAL/Combinatorial_map_save_load.h index debd26b66e8..6650724e300 100644 --- a/Combinatorial_map/include/CGAL/Combinatorial_map_save_load.h +++ b/Combinatorial_map/include/CGAL/Combinatorial_map_save_load.h @@ -295,7 +295,7 @@ namespace CGAL { boost::property_tree::ptree cmap_save_darts (const CMap& amap, std::map& myDarts) { - assert( myDarts.empty() ); + CGAL_assertion( myDarts.empty() ); // First we numbered each dart by using the std::map. typename CMap::Dart_range::const_iterator it(amap.darts().begin()); diff --git a/Number_types/include/CGAL/Test/test_root_of_traits.h b/Number_types/include/CGAL/Test/test_root_of_traits.h index 20d19a817df..53b21d813b7 100644 --- a/Number_types/include/CGAL/Test/test_root_of_traits.h +++ b/Number_types/include/CGAL/Test/test_root_of_traits.h @@ -70,7 +70,7 @@ void test_root_of_traits(){ Root_of_2 rr = ftd(CGAL::make_root_of_2(T(1),T(0),T(-2),false)); //+sqrt(2) assert(r == rl); assert(rl != rr); - + assert( ftd(r * Root_of_1(2)) == ftd(CGAL::make_root_of_2(T(0),T(-2),T(2)))); assert( ftd(r * T(2)) == ftd(CGAL::make_root_of_2(T(0),T(-2),T(2)))); } @@ -110,7 +110,7 @@ void test_root_of_traits(){ { std::vector roots; CGAL::compute_roots_of_2(T(1),T(0),T(-2),std::back_inserter(roots)); - assert(roots.size()==2); + assert(roots.size()==2); assert(roots[0]==-CGAL::make_sqrt(T(2)) || is_not_exact ); assert(roots[1]== CGAL::make_sqrt(T(2)) || is_not_exact ); } diff --git a/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Scale_space_surface_reconstruction_3_impl.h b/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Scale_space_surface_reconstruction_3_impl.h index 68b35895599..8d9c7aaf14c 100644 --- a/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Scale_space_surface_reconstruction_3_impl.h +++ b/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Scale_space_surface_reconstruction_3_impl.h @@ -712,7 +712,7 @@ detect_bubbles(FT border_angle) { { unsigned int i0 = (i + j + 1)%4; unsigned int i1 = (i + (j+1)%3 + 1)%4; - assert (i0 != i && i1 != i); + CGAL_assertion (i0 != i && i1 != i); Edge edge (c, i0, i1); if (_shape->classify (edge) != Shape::REGULAR)