From 4b2ff59c46d50c16fda2a8734e0dae850b6d00ae Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 18 Jan 2019 15:00:46 +0100 Subject: [PATCH] Fix Rectangular_p_center --- .../include/CGAL/Rectangular_p_center_traits_2.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h b/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h index 3a136691caa..3f04cfcf91d 100644 --- a/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h +++ b/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h @@ -68,6 +68,19 @@ struct I_Infinity_distance_2 : public CGAL::binary_function< Point_2< R >, Point_2< R >, typename R::FT > { + // Added as workaround for VC2017 with /arch:AVX to fix + // https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.14-I-95/Rectangular_p_center_2_Examples/TestReport_afabri_x64_Cygwin-Windows10_MSVC2017-Release-64bits.gz + I_Infinity_distance_2() + {} + + I_Infinity_distance_2(const I_Infinity_distance_2&) + {} + + I_Infinity_distance_2& operator=(const I_Infinity_distance_2&) + { + return *this; + } + typename R::FT operator()(const Point_2< R >& q1, const Point_2< R >& q2) const { return (std::max)(CGAL_NTS abs(q1.x() - q2.x()),