From fde05660f29fc1bde4c31d21fa1f6673cf0ba336 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 4 Mar 2013 14:35:02 +0100 Subject: [PATCH] put entire loop in an #ifndef CGAL_NO_ASSERTIONS --- .../include/CGAL/Kinetic/Heap_pointer_event_queue.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kinetic_data_structures/include/CGAL/Kinetic/Heap_pointer_event_queue.h b/Kinetic_data_structures/include/CGAL/Kinetic/Heap_pointer_event_queue.h index 5a6b89fd1cb..c19832e5562 100644 --- a/Kinetic_data_structures/include/CGAL/Kinetic/Heap_pointer_event_queue.h +++ b/Kinetic_data_structures/include/CGAL/Kinetic/Heap_pointer_event_queue.h @@ -625,14 +625,15 @@ protected: //! debugging bool is_valid() const { +#ifndef CGAL_NO_ASSERTIONS for (unsigned int i=0; i< queue_.size(); ++i) { - //int bin= i; int back= queue_[i]->bin(); CGAL_assertion(static_cast(back)==i || write(std::cerr)); CGAL_assertion(!less_than_parent(i) || write(std::cerr)); //CGAL_assertion(less_than_child(i, FIRST)); //CGAL_assertion(less_than_child(i, SECOND)); } +#endif return true; }