From ea13c32806f38e1436a13425a18b93c8cfabfa69 Mon Sep 17 00:00:00 2001 From: skachano Date: Tue, 6 Dec 2016 10:33:35 +0000 Subject: Changed assert to GUDHI_CHECK git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@1825 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b9b5f5d857bb94ce06b917643cb1c5756cc307bb --- .../include/gudhi/Active_witness/Active_witness_iterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Witness_complex/include/gudhi/Active_witness') diff --git a/src/Witness_complex/include/gudhi/Active_witness/Active_witness_iterator.h b/src/Witness_complex/include/gudhi/Active_witness/Active_witness_iterator.h index 6853faa6..38e39f79 100644 --- a/src/Witness_complex/include/gudhi/Active_witness/Active_witness_iterator.h +++ b/src/Witness_complex/include/gudhi/Active_witness/Active_witness_iterator.h @@ -82,7 +82,7 @@ private : void increment() { // the neighbor search can't be at the end iterator of a list - assert(!is_end_ && lh_ != aw_->nearest_landmark_table_.end()); + GUDHI_CHECK(!is_end_ && lh_ != aw_->nearest_landmark_table_.end(), std::logic_error("Wrong active witness increment.")); // if the id of the current landmark is the same as the last one if (lh_->first == aw_->iterator_last_->first) { // if the next iterator is end, lh_it = end pointer -- cgit v1.2.3