mirror of https://github.com/CGAL/cgal
Fix Rectangular_p_center
This commit is contained in:
parent
a879cb040a
commit
4b2ff59c46
|
|
@ -68,6 +68,19 @@ struct I_Infinity_distance_2
|
||||||
: public CGAL::binary_function<
|
: public CGAL::binary_function<
|
||||||
Point_2< R >, Point_2< R >, typename R::FT >
|
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
|
typename R::FT
|
||||||
operator()(const Point_2< R >& q1, const Point_2< R >& q2) const {
|
operator()(const Point_2< R >& q1, const Point_2< R >& q2) const {
|
||||||
return (std::max)(CGAL_NTS abs(q1.x() - q2.x()),
|
return (std::max)(CGAL_NTS abs(q1.x() - q2.x()),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue