From c06596e61c92f54a01756e1ba1babaff800f0f02 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Tue, 3 Apr 2018 15:25:23 +0000 Subject: 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 --- src/common/include/gudhi/writing_persistence_to_file.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/include/gudhi/writing_persistence_to_file.h') 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. -- cgit v1.2.3