diff --git a/example/05_b_overlay_linestring_polygon_example.cpp b/example/05_b_overlay_linestring_polygon_example.cpp index 38349decb..f37165f3e 100644 --- a/example/05_b_overlay_linestring_polygon_example.cpp +++ b/example/05_b_overlay_linestring_polygon_example.cpp @@ -67,12 +67,13 @@ int main(void) #endif // Calculate intersection points (turn points) - typedef bg::segment_ratio_type::type segment_ratio; + typedef bg::detail::segment_ratio_type::type segment_ratio; typedef bg::detail::overlay::turn_info turn_info; std::vector turns; bg::detail::get_turns::no_interrupt_policy policy; bg::detail::no_rescale_policy rescale_policy; - bg::get_turns(ls, p, rescale_policy, turns, policy); + bg::strategy::intersection::services::default_strategy::type>::type intersection_strategy; + bg::get_turns(ls, p, intersection_strategy, rescale_policy, turns, policy); std::cout << "Intersection of linestring/polygon" << std::endl; BOOST_FOREACH(turn_info const& turn, turns) diff --git a/example/c05_custom_point_pointer_example.cpp b/example/c05_custom_point_pointer_example.cpp index d8059fe04..a1d9dbef0 100644 --- a/example/c05_custom_point_pointer_example.cpp +++ b/example/c05_custom_point_pointer_example.cpp @@ -102,10 +102,11 @@ int main() // This works because outputs to a normal struct point, no point* typedef boost::geometry::model::linestring linestring_2d; + boost::geometry::detail::no_rescale_policy rescale_policy; std::vector clipped; boost::geometry::strategy::intersection::liang_barsky strategy; boost::geometry::detail::intersection::clip_range_with_box(cb, - myline, std::back_inserter(clipped), strategy); + myline, rescale_policy, std::back_inserter(clipped), strategy); std::cout << boost::geometry::length(clipped.front()) << std::endl; diff --git a/example/c08_custom_non_std_example.cpp b/example/c08_custom_non_std_example.cpp index 0a545a3de..12bb76840 100644 --- a/example/c08_custom_non_std_example.cpp +++ b/example/c08_custom_non_std_example.cpp @@ -281,7 +281,7 @@ int main() // Create (as an example) a regular polygon const int n = 5; - const double d = (360 / n) * boost::geometry::math::d2r; + const double d = (360 / n) * boost::geometry::math::d2r(); double a = 0; for (int i = 0; i < n + 1; i++, a += d) {