From d8e1b94bc5a61d59d31269ecc6008f1388ec14e5 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Sun, 18 Jan 2004 13:34:40 +0000 Subject: [PATCH] - Remove obsolete workaround CGAL_CFG_FUNCTION_OVERLOAD_BUG. - Rename CH_NO_POSTCONDITIONS to CGAL_CH_NO_POSTCONDITIONS. --- Packages/Convex_hull_3/changes.txt | 4 + .../include/CGAL/convex_hull_3.h | 115 +----------------- 2 files changed, 6 insertions(+), 113 deletions(-) diff --git a/Packages/Convex_hull_3/changes.txt b/Packages/Convex_hull_3/changes.txt index 5b6862a2282..f9063dd79c6 100644 --- a/Packages/Convex_hull_3/changes.txt +++ b/Packages/Convex_hull_3/changes.txt @@ -1,3 +1,7 @@ +2.53 (18 Jan 2004) +- Remove obsolete workaround CGAL_CFG_FUNCTION_OVERLOAD_BUG. +- Rename CH_NO_POSTCONDITIONS to CGAL_CH_NO_POSTCONDITIONS. + 2.52 (18 Jan 2004) - Remove obsolete workaround CGAL_MSVC_DUMMY_ARGUMENT (VC++ <= 7.0). diff --git a/Packages/Convex_hull_3/include/CGAL/convex_hull_3.h b/Packages/Convex_hull_3/include/CGAL/convex_hull_3.h index 423022dcfa8..5e36344b75f 100644 --- a/Packages/Convex_hull_3/include/CGAL/convex_hull_3.h +++ b/Packages/Convex_hull_3/include/CGAL/convex_hull_3.h @@ -35,9 +35,9 @@ #include #include -#ifndef CH_NO_POSTCONDITIONS +#ifndef CGAL_CH_NO_POSTCONDITIONS #include -#endif // CH_NO_POSTCONDITIONS +#endif // CGAL_CH_NO_POSTCONDITIONS namespace CGAL { @@ -272,25 +272,6 @@ partition_outside_sets(const std::list& new_facets, -#if defined(CGAL_CFG_FUNCTION_OVERLOAD_BUG) - - -template < class Tr, class Traits, class Items, -#ifndef CGAL_CFG_NO_TMPL_IN_TMPL_PARAM - template < class T, class I, class A> -#endif - class HDS, class Alloc> -void -ch_quickhull_3_scan(Polyhedron_3& P, - std::list::Facet_handle>& - pending_facets, - CGAL::Unique_hash_map::Facet_handle, - std::list >& outside_sets, const Traits& traits -) - - -#else - template void ch_quickhull_3_scan( @@ -299,16 +280,8 @@ ch_quickhull_3_scan( CGAL::Unique_hash_map >& outside_sets, const Traits& traits) -#endif // CGAL_CFG_FUNCTION_OVERLOAD_BUG { - -#if defined(CGAL_CFG_FUNCTION_OVERLOAD_BUG) - - typedef Polyhedron_3 Polyhedron; - -#else typedef Polyhedron_3 Polyhedron; -#endif // CGAL_CFG_FUNCTION_OVERLOAD_BUG typedef typename Polyhedron::Halfedge_handle Halfedge_handle; typedef typename Polyhedron::Halfedge_iterator Halfedge_iterator; typedef typename Polyhedron::Facet_handle Facet_handle; @@ -426,32 +399,11 @@ ch_quickhull_3_scan( } -#if defined(CGAL_CFG_FUNCTION_OVERLOAD_BUG) - - -template < class Tr, class Traits, class Items, -#ifndef CGAL_CFG_NO_TMPL_IN_TMPL_PARAM - template < class T, class I, class A> -#endif - class HDS, class Alloc> -void non_coplanar_quickhull_3(std::list& points, - Polyhedron_3& P, const Traits& traits) - -#else - template void non_coplanar_quickhull_3(std::list& points, Polyhedron_3& P, const Traits& traits) -#endif // CGAL_CFG_FUNCTION_OVERLOAD_BUG - { -#if defined (CGAL_CFG_FUNCTION_OVERLOAD_BUG) - - typedef typename Polyhedron_3 Polyhedron; - -#else typedef Polyhedron_3 Polyhedron; -#endif // _MS_VER typedef typename Polyhedron::Facet_handle Facet_handle; typedef typename Polyhedron::Facet_iterator Facet_iterator; @@ -506,38 +458,12 @@ void non_coplanar_quickhull_3(std::list& points, -// -#if defined(CGAL_CFG_FUNCTION_OVERLOAD_BUG) - - -template < class InputIterator, class Tr, class Traits, - class Items, -#ifndef CGAL_CFG_NO_TMPL_IN_TMPL_PARAM - template < class T, class I, class A> -#endif - class HDS, class Alloc - > -void -ch_quickhull_polyhedron_3(std::list& points, - InputIterator point1_it, - InputIterator point2_it, - InputIterator point3_it, - Polyhedron_3& P, - const Traits& traits - ) - - -#else - template void ch_quickhull_polyhedron_3(std::list& points, InputIterator point1_it, InputIterator point2_it, InputIterator point3_it, Polyhedron_3& P, const Traits& traits) - -#endif // CGAL_CFG_FUNCTION_OVERLOAD_BUG - { typedef typename Traits::Point_3 Point_3; typedef typename Traits::Plane_3 Plane_3; @@ -700,35 +626,13 @@ void convex_hull_3(InputIterator first, InputIterator beyond, -#if defined(CGAL_CFG_FUNCTION_OVERLOAD_BUG) - - -template < class InputIterator, - class Tr, - class Traits, - class Items, -#ifndef CGAL_CFG_NO_TMPL_IN_TMPL_PARAM - template < class T, class I, class A> -#endif - class HDS, class Alloc> -void convex_hull_3(InputIterator first, InputIterator beyond, - Polyhedron_3& polyhedron, - const Traits& traits) - -#else - template void convex_hull_3(InputIterator first, InputIterator beyond, Polyhedron_3& polyhedron, const Traits& traits) -#endif // CGAL_CFG_FUNCTION_OVERLOAD_BUG { typedef typename Traits::Point_3 Point_3; typedef typename Traits::Plane_3 Plane_3; -#if defined(CGAL_CFG_FUNCTION_OVERLOAD_BUG) - typedef std::list< Traits::Point_3> Point_3_list; -#else typedef std::list Point_3_list; -#endif // CGAL_CFG_FUNCTION_OVERLOAD_BUG typedef typename Point_3_list::iterator P3_iterator; Point_3_list points(first, beyond); @@ -758,29 +662,14 @@ void convex_hull_3(InputIterator first, InputIterator beyond, } -#if defined(CGAL_CFG_FUNCTION_OVERLOAD_BUG) - - -template < class InputIterator, class Traits, class Items, -#ifndef CGAL_CFG_NO_TMPL_IN_TMPL_PARAM - template < class T, class I, class A> -#endif - class HDS, class Alloc> -void convex_hull_3(InputIterator first, InputIterator beyond, - Polyhedron_3& polyhedron ) - -#else template void convex_hull_3(InputIterator first, InputIterator beyond, Polyhedron_3& polyhedron) - -#endif // CGAL_CFG_FUNCTION_OVERLOAD_BUG { typedef typename std::iterator_traits::value_type Point_3; typedef typename Kernel_traits::Kernel K; convex_hull_3(first, beyond, polyhedron, Convex_hull_traits_3()); - } } // namespace CGAL