summaryrefslogtreecommitdiff
path: root/src/common/include
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-04-03 14:45:54 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-04-03 14:45:54 +0000
commitf9fa3467af7d1cb3e1797170d62c0cc6f87f8cf4 (patch)
treeedc491d87a3233ec980bb1e357dcda22f383c3c9 /src/common/include
parent77d03dba655f8c19c413d70b929c6426f332dc34 (diff)
Add explicit operator< to fix sort bug
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3331 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: d1a70cdbae311f1376e24d61568471d81b7f0df1
Diffstat (limited to 'src/common/include')
-rw-r--r--src/common/include/gudhi/writing_persistence_to_file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/include/gudhi/writing_persistence_to_file.h b/src/common/include/gudhi/writing_persistence_to_file.h
index 5020b5fb..49ccef84 100644
--- a/src/common/include/gudhi/writing_persistence_to_file.h
+++ b/src/common/include/gudhi/writing_persistence_to_file.h
@@ -101,6 +101,11 @@ class Persistence_interval_common {
Coefficient_field arith_element_;
};
+template <typename Filtration_type, typename Coefficient_field>
+bool operator<(const Persistence_interval_common<Filtration_type, Coefficient_field>& i1,
+ const Persistence_interval_common<Filtration_type, Coefficient_field>& i2) {
+ return i1.operator<(i2);
+ }
/**
* This function write a vector<Persistence_interval_common> to a stream
**/