diff options
author | Arnur Nigmetov <a.nigmetov@gmail.com> | 2018-06-19 22:51:58 +0200 |
---|---|---|
committer | Arnur Nigmetov <a.nigmetov@gmail.com> | 2018-06-19 22:51:58 +0200 |
commit | e2a2d6cb2eec5a7153d6e895a28c85c49347f644 (patch) | |
tree | 86fb2873f0b479a8766aaddd3da5874281e82a66 /geom_bottleneck/include/basic_defs_bt.h | |
parent | 4e3fcd2f8596f39b9bff8cdd8d9789fdffe8a49c (diff) |
Template bug fixed
Diffstat (limited to 'geom_bottleneck/include/basic_defs_bt.h')
-rw-r--r-- | geom_bottleneck/include/basic_defs_bt.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/geom_bottleneck/include/basic_defs_bt.h b/geom_bottleneck/include/basic_defs_bt.h index a26d9a5..6124dbe 100644 --- a/geom_bottleneck/include/basic_defs_bt.h +++ b/geom_bottleneck/include/basic_defs_bt.h @@ -206,8 +206,7 @@ namespace hera { #ifndef FOR_R_TDA - template<class R> - friend std::ostream& operator<<(std::ostream& output, const DiagramPoint<R>& p) + friend std::ostream& operator<<(std::ostream& output, const DiagramPoint& p) { if (p.isDiagonal()) { output << "(" << p.x << ", " << p.y << ", " << 0.5 * (p.x + p.y) << ", " << p.id << " DIAG )"; @@ -245,6 +244,7 @@ namespace hera { return 0.0; } // otherwise distance is a usual l-inf distance + // Real dx = (a.getRealX() == b.getRealX()) ? 0.0 : fabs(a.getRealX() - b.getRealX()); Real dy = (a.getRealY() == b.getRealY()) ? 0.0 : fabs(a.getRealY() - b.getRealY()); Real result = std::max(dx, dy); @@ -406,8 +406,7 @@ namespace hera { #ifndef FOR_R_TDA - template<class R> - friend std::ostream& operator<<(std::ostream& output, const DiagramPointSet<R>& ps) + friend std::ostream& operator<<(std::ostream& output, const DiagramPointSet& ps) { output << "{ "; for (auto pit = ps.cbegin(); pit != ps.cend(); ++pit) { |