From 55ea347168c252c1e168e22f459ae84904723d99 Mon Sep 17 00:00:00 2001 From: Dmitry Anisimov Date: Wed, 9 Jun 2021 17:23:41 +0200 Subject: [PATCH] making query point type equal to point range value type --- Weights/include/CGAL/Weights/discrete_harmonic_weights.h | 6 ++++-- Weights/include/CGAL/Weights/mean_value_weights.h | 6 ++++-- Weights/include/CGAL/Weights/wachspress_weights.h | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Weights/include/CGAL/Weights/discrete_harmonic_weights.h b/Weights/include/CGAL/Weights/discrete_harmonic_weights.h index a492c032221..eee0eb393f3 100644 --- a/Weights/include/CGAL/Weights/discrete_harmonic_weights.h +++ b/Weights/include/CGAL/Weights/discrete_harmonic_weights.h @@ -425,11 +425,13 @@ namespace Weights { /// \cond SKIP_IN_MANUAL template< typename PointRange, - typename Point_2, typename OutIterator> OutIterator discrete_harmonic_weights_2( - const PointRange& polygon, const Point_2& query, OutIterator w_begin) { + const PointRange& polygon, + const typename PointRange::value_type& query, + OutIterator w_begin) { + using Point_2 = typename PointRange::value_type; using GeomTraits = typename Kernel_traits::Kernel; const GeomTraits traits; return discrete_harmonic_weights_2( diff --git a/Weights/include/CGAL/Weights/mean_value_weights.h b/Weights/include/CGAL/Weights/mean_value_weights.h index 84ed06d1174..cb99a5b076b 100644 --- a/Weights/include/CGAL/Weights/mean_value_weights.h +++ b/Weights/include/CGAL/Weights/mean_value_weights.h @@ -587,11 +587,13 @@ namespace Weights { /// \cond SKIP_IN_MANUAL template< typename PointRange, - typename Point_2, typename OutIterator> OutIterator mean_value_weights_2( - const PointRange& polygon, const Point_2& query, OutIterator w_begin) { + const PointRange& polygon, + const typename PointRange::value_type& query, + OutIterator w_begin) { + using Point_2 = typename PointRange::value_type; using GeomTraits = typename Kernel_traits::Kernel; const GeomTraits traits; return mean_value_weights_2( diff --git a/Weights/include/CGAL/Weights/wachspress_weights.h b/Weights/include/CGAL/Weights/wachspress_weights.h index 67571cfae6b..084dbbe8668 100644 --- a/Weights/include/CGAL/Weights/wachspress_weights.h +++ b/Weights/include/CGAL/Weights/wachspress_weights.h @@ -405,11 +405,13 @@ namespace Weights { /// \cond SKIP_IN_MANUAL template< typename PointRange, - typename Point_2, typename OutIterator> OutIterator wachspress_weights_2( - const PointRange& polygon, const Point_2& query, OutIterator w_begin) { + const PointRange& polygon, + const typename PointRange::value_type& query, + OutIterator w_begin) { + using Point_2 = typename PointRange::value_type; using GeomTraits = typename Kernel_traits::Kernel; const GeomTraits traits; return wachspress_weights_2(