From 6ae64e7a735154c00b74b2906dad2dadaa83d1d4 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 27 Mar 2020 16:41:53 +0100 Subject: [PATCH] Make functor a template parameter in the internal function --- STL_Extension/include/CGAL/for_each.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/STL_Extension/include/CGAL/for_each.h b/STL_Extension/include/CGAL/for_each.h index 65aeedef9d6..f68bba0e80b 100644 --- a/STL_Extension/include/CGAL/for_each.h +++ b/STL_Extension/include/CGAL/for_each.h @@ -54,10 +54,9 @@ void for_each (RangeRef range, } #ifdef CGAL_LINKED_WITH_TBB -template +template void for_each (RangeRef range, - const std::function::type>::reference)>& functor, + const Fct& functor, const Parallel_tag&, IteratorCategory) { @@ -77,10 +76,9 @@ void for_each (RangeRef range, }); } -template +template void for_each (RangeRef range, - const std::function::type>::reference)>& functor, + const Fct& functor, const Parallel_tag&, std::random_access_iterator_tag) {