summaryrefslogtreecommitdiff
path: root/src/Witness_complex/include/gudhi/Active_witness
diff options
context:
space:
mode:
authorskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-12-06 10:33:35 +0000
committerskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-12-06 10:33:35 +0000
commitea13c32806f38e1436a13425a18b93c8cfabfa69 (patch)
tree872028c5cfb93c888240a72eb0defff69aa1a759 /src/Witness_complex/include/gudhi/Active_witness
parentae96c8bbacc9c54e69c1a4bdf70e03dbde2ec48c (diff)
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
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