summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-11-19 22:38:57 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-11-19 22:38:57 +0000
commitab6719fb3391569be1231dc9e9dedba5df86c2fd (patch)
treef65aaefdd99e8eddf1e3751727a3cd38d89b527a /src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
parent7e21b356485e8f5baf10df62d882c1af85afc210 (diff)
Fix compilation issue in debug mode
to_double(*it) is also available if *it is a double Bad comment in Value_from_iterator between Epeck and Epick git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alpha_complex_3d_module_vincent@4005 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: cba42be09eeee39a12a6f0adf8ff72f9147f5d1a
Diffstat (limited to 'src/Alpha_complex/include/gudhi/Alpha_complex_3d.h')
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex_3d.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
index f40a08f9..ca3c5fc3 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
@@ -82,16 +82,7 @@ template <complexity Complexity, bool Weighted_or_periodic>
struct Value_from_iterator {
template <typename Iterator>
static double perform(Iterator it) {
- // Default behaviour is to return the value pointed by the given iterator
- return *it;
- }
-};
-
-template <>
-struct Value_from_iterator<complexity::SAFE, true> {
- template <typename Iterator>
- static double perform(Iterator it) {
- // In SAFE mode, we are with Epick with EXACT value set to CGAL::Tag_true.
+ // Default behaviour
return CGAL::to_double(*it);
}
};
@@ -118,7 +109,7 @@ template<bool Weighted_or_periodic>
struct Value_from_iterator<complexity::EXACT,Weighted_or_periodic>{
template <typename Iterator>
static double perform(Iterator it) {
- // In EXACT mode, we are with Epeck or Epick with EXACT value set to CGAL::Tag_true.
+ // In EXACT mode, we are with Epeck, or with Epick and EXACT value set to CGAL::Tag_true.
return CGAL::to_double(it->exact());
}
};