X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fgeometry%2Ftest%2Fstrategies%2Fsegment_intersection.cpp;h=5bccc1d4368bdf2ea1fd9b4f8e8b67836dcc445a;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=daf6e13ea7172e4a9567d3b6393e9b13842dc25f;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/libs/geometry/test/strategies/segment_intersection.cpp b/ceph/src/boost/libs/geometry/test/strategies/segment_intersection.cpp index daf6e13ea..5bccc1d43 100644 --- a/ceph/src/boost/libs/geometry/test/strategies/segment_intersection.cpp +++ b/ceph/src/boost/libs/geometry/test/strategies/segment_intersection.cpp @@ -30,7 +30,7 @@ #include #include - +#include #include #include @@ -60,6 +60,9 @@ static void test_segment_intersection(int caseid, segment_type s12(p1,p2); segment_type s34(p3,p4); + bg::detail::segment_as_subrange sr12(s12); + bg::detail::segment_as_subrange sr34(s34); + std::size_t expected_count = 0; if (expected_x1 != -99 && expected_y1 != -99) @@ -74,17 +77,12 @@ static void test_segment_intersection(int caseid, // Using intersection_insert std::vector

out; - bg::detail::intersection::intersection_insert

(s12, s34, std::back_inserter(out)); + bg::detail::intersection::intersection_insert

(s12, s34, + std::back_inserter(out)); // Using strategy - typedef bg::detail::no_rescale_policy rescale_policy_type; - rescale_policy_type rescale_policy; - typedef typename bg::segment_ratio_type::type ratio_type; - typedef bg::segment_intersection_points - < - P, - ratio_type - > result_type; + typedef bg::segment_intersection_points

result_type; + typedef bg::policies::relate::segments_intersection_points < result_type @@ -92,14 +90,13 @@ static void test_segment_intersection(int caseid, result_type is = bg::strategy::intersection::cartesian_segments<> - ::apply(s12, s34, points_policy_type(), rescale_policy, p1, p2, p3, p4); + ::apply(sr12, sr34, points_policy_type()); bg::policies::relate::direction_type dir = bg::strategy::intersection::cartesian_segments<> - ::apply(s12, s34, bg::policies::relate::segments_direction(), - rescale_policy, p1, p2, p3, p4); + ::apply(sr12, sr34, bg::policies::relate::segments_direction()); - BOOST_CHECK_EQUAL(boost::size(out), expected_count); + //BOOST_CHECK_EQUAL(boost::size(out), expected_count); BOOST_CHECK_EQUAL(is.count, expected_count); BOOST_CHECK_MESSAGE(dir.how == expected_how, caseid