From 83b8e026c0ca3171615e7dc760f0cc61cc7ee933 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Fri, 16 Nov 2018 15:29:05 +0000 Subject: Code review : Factorize some templates git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alpha_complex_3d_module_vincent@3994 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: fe719a7bae84c6378bc9dc583de97414e6f8cf74 --- src/Alpha_complex/include/gudhi/Alpha_complex_3d.h | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'src/Alpha_complex/include') diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h index d5aa152a..95e68b7e 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h @@ -114,17 +114,8 @@ struct Value_from_iterator { } }; -template <> -struct Value_from_iterator { - template - static double perform(Iterator it) { - // In EXACT mode, we are with Epeck or Epick with EXACT value set to CGAL::Tag_true. - return CGAL::to_double(it->exact()); - } -}; - -template <> -struct Value_from_iterator { +template +struct Value_from_iterator{ template static double perform(Iterator it) { // In EXACT mode, we are with Epeck or Epick with EXACT value set to CGAL::Tag_true. @@ -190,14 +181,11 @@ class Alpha_complex_3d { template struct Kernel_3 {}; - template - struct Kernel_3 { - using Kernel = Predicates; - }; - template - struct Kernel_3 { + template + struct Kernel_3 { using Kernel = Predicates; }; + template struct Kernel_3 { using Kernel = CGAL::Periodic_3_Delaunay_triangulation_traits_3; -- cgit v1.2.3