X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fgeometry%2Falgorithms%2Fcorrect.hpp;h=a3d068a2dccb93cd638d32546d3fdfb60fc20087;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=21b9977ce54ea3e941973947057811311daf0d23;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/geometry/algorithms/correct.hpp b/ceph/src/boost/boost/geometry/algorithms/correct.hpp index 21b9977ce..a3d068a2d 100644 --- a/ceph/src/boost/boost/geometry/algorithms/correct.hpp +++ b/ceph/src/boost/boost/geometry/algorithms/correct.hpp @@ -5,8 +5,8 @@ // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Copyright (c) 2014-2017 Adam Wulkiewicz, Lodz, Poland. -// This file was modified by Oracle on 2017. -// Modifications copyright (c) 2017 Oracle and/or its affiliates. +// This file was modified by Oracle on 2017-2020. +// Modifications copyright (c) 2017-2020 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library @@ -24,9 +24,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -147,7 +147,13 @@ struct correct_ring typedef typename area_result::type area_result_type; Predicate predicate; area_result_type const zero = 0; - if (predicate(ring_area_type::apply(r, strategy), zero)) + if (predicate(ring_area_type::apply(r, + // TEMP - in the future (umbrella) strategy will be passed + geometry::strategies::area::services::strategy_converter + < + Strategy + >::get(strategy)), + zero)) { std::reverse(boost::begin(r), boost::end(r)); }