summaryrefslogtreecommitdiff
path: root/src/Witness_complex/include/gudhi/Active_witness
diff options
context:
space:
mode:
Diffstat (limited to 'src/Witness_complex/include/gudhi/Active_witness')
-rw-r--r--src/Witness_complex/include/gudhi/Active_witness/Active_witness_iterator.h2
1 files changed, 1 insertions, 1 deletions
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