summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-04-03 15:25:23 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-04-03 15:25:23 +0000
commitc06596e61c92f54a01756e1ba1babaff800f0f02 (patch)
treef9b3125eb4cb81f35d91d5a2f5847e244285c73e
parent423e06352d4498361ee81d6a23aa2c77dd58d1c8 (diff)
Modify the correct signature to operator== and !=
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3333 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 936c6abcb75e16cc569368e45e87feaa409e0890
-rw-r--r--src/common/include/gudhi/writing_persistence_to_file.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/include/gudhi/writing_persistence_to_file.h b/src/common/include/gudhi/writing_persistence_to_file.h
index 766dd317..0e79704b 100644
--- a/src/common/include/gudhi/writing_persistence_to_file.h
+++ b/src/common/include/gudhi/writing_persistence_to_file.h
@@ -64,7 +64,7 @@ class Persistence_interval_common {
* fields: birth, death, dimensiona and arith_element_ are taken into account
* and they all have to be equal for two pairs to be equal.
**/
- inline bool operator==(const Persistence_interval_common& i2) {
+ bool operator==(const Persistence_interval_common& i2) const {
return ((this->birth_ == i2.birth_) && (this->death_ == i2.death_) && (this->dimension_ == i2.dimension_) &&
(this->arith_element_ == i2.arith_element_));
}
@@ -72,7 +72,7 @@ class Persistence_interval_common {
/**
* Check if two persistence paris are not equal.
**/
- inline bool operator!=(const Persistence_interval_common& i2) { return (!((*this) == i2)); }
+ bool operator!=(const Persistence_interval_common& i2) const { return (!((*this) == i2)); }
/**
* Operator to compare objects of a type Persistence_interval_common.