put entire loop in an #ifndef CGAL_NO_ASSERTIONS

This commit is contained in:
Andreas Fabri 2013-03-04 14:35:02 +01:00
parent b3b1aee424
commit fde05660f2
1 changed files with 2 additions and 1 deletions

View File

@ -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<unsigned int>(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;
}