From 4bdd91da80c9f232016661dcbeabbc9c9a3732ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 10 Feb 2023 16:58:33 +0100 Subject: [PATCH] Specify template to avoid ambiguous call --- .../include/CGAL/compute_outer_frame_margin.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Straight_skeleton_2/include/CGAL/compute_outer_frame_margin.h b/Straight_skeleton_2/include/CGAL/compute_outer_frame_margin.h index b7c641b805a..f225b041ab1 100644 --- a/Straight_skeleton_2/include/CGAL/compute_outer_frame_margin.h +++ b/Straight_skeleton_2/include/CGAL/compute_outer_frame_margin.h @@ -104,7 +104,8 @@ boost::optional< typename Traits::FT > compute_outer_frame_margin ( ForwardPoint } -template +// `Traits` first is to help overload resolution in the 3-argument version (see below) +template boost::optional< typename Traits::FT > compute_outer_frame_margin ( ForwardPointIterator aBegin , ForwardPointIterator aEnd , typename Traits::FT aOffset @@ -139,10 +140,10 @@ boost::optional compute_outer_frame_margin(ForwardPointIterator aBegin, typedef typename std::iterator_traits::value_type Point_2 ; typedef typename Kernel_traits::Kernel K; + typedef Polygon_offset_builder_traits_2 Builder_traits; + Builder_traits traits ; - Polygon_offset_builder_traits_2 traits ; - - return compute_outer_frame_margin(aBegin,aEnd,aOffset,traits); + return compute_outer_frame_margin(aBegin,aEnd,aOffset,traits); } } // end namespace CGAL