From a1189511f922abf81fb260892b10cd1306588aad Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 3 Feb 2021 09:10:59 +0000 Subject: [PATCH] No need for multiplies --- Kernel_d/include/CGAL/Kernel_d/Iso_box_d.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Kernel_d/include/CGAL/Kernel_d/Iso_box_d.h b/Kernel_d/include/CGAL/Kernel_d/Iso_box_d.h index 3b4c46fadc4..2f150262095 100644 --- a/Kernel_d/include/CGAL/Kernel_d/Iso_box_d.h +++ b/Kernel_d/include/CGAL/Kernel_d/Iso_box_d.h @@ -37,7 +37,7 @@ namespace CGAL { struct equal_to { typedef bool result_type; - bool operator()(const T &lhs, const T &rhs) const + result_type operator()(const T &lhs, const T &rhs) const { return lhs == rhs; } @@ -48,23 +48,13 @@ namespace CGAL { struct minus { typedef T result_type; - T operator()(const T &lhs, const T &rhs) const + result_type operator()(const T &lhs, const T &rhs) const { return lhs - rhs; } }; - template - struct multiplies { - typedef T result_type; - - T operator()(const T &lhs, const T &rhs) const - { - return lhs * rhs; - } - - }; } // namespace Kernel_d template < typename Point_, typename Functor_ > @@ -314,7 +304,7 @@ namespace CGAL { Iter; Iter b(ptr()->upper, ptr()->lower, Begin()); Iter e(ptr()->upper, ptr()->lower, Cartesian_end()); - return std::accumulate(b, e, RT(1), Kernel_d::multiplies()); + return std::accumulate(b, e, RT(1), std::multiplies()); } RT volume_denominator() const