From 7f78f9946e918c262a623c292f45075425e9d6c6 Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Thu, 4 Mar 2010 19:00:46 +0000 Subject: [PATCH] now using the algebraic structure traits; this is the first step towards automatizing the method the traits are evaluated --- .../CGAL/Segment_Delaunay_graph_traits_2.h | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_traits_2.h b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_traits_2.h index fa46b6e6419..d8830222bb2 100644 --- a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_traits_2.h +++ b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_traits_2.h @@ -38,10 +38,24 @@ CGAL_BEGIN_NAMESPACE //----------------------------------------------------------------------- // this traits class does support intersecting segments -template + +// the following definition is okay when giving Field_with_sqrt_tag +// for all other tags I need a specialization +template::Algebraic_category + /*Field_tag*/> struct Segment_Delaunay_graph_traits_2 : public Segment_Delaunay_graph_traits_base_2 {}; +template +struct Segment_Delaunay_graph_traits_2 + : public Segment_Delaunay_graph_traits_base_2 {}; + +template +struct Segment_Delaunay_graph_traits_2 + : public Segment_Delaunay_graph_traits_base_2 {}; + template struct Segment_Delaunay_graph_traits_2 : public Segment_Delaunay_graph_traits_base_2 {}; @@ -92,7 +106,10 @@ struct Segment_Delaunay_graph_traits_2,Field_with_sqrt_tag> //========================================================================= // this traits class does NOT support intersecting segments -template +template::Algebraic_category + /*Integral_domain_without_division_tag*/> struct Segment_Delaunay_graph_traits_without_intersections_2 : public Segment_Delaunay_graph_traits_base_2 {};