Index: touches.hpp =================================================================== --- touches.hpp (revision 85862) +++ touches.hpp (working copy) @@ -81,6 +81,15 @@ return has_touch; } +template ::type> +struct should_reverse { static const bool value = false; }; +template +struct should_reverse { static const bool value = geometry::point_order::value != clockwise; }; +template +struct should_reverse { static const bool value = geometry::point_order::value != clockwise; }; +template +struct should_reverse { static const bool value = geometry::point_order::type>::value != clockwise; }; + }} /*! @@ -164,7 +173,8 @@ detail::get_turns::no_interrupt_policy policy; boost::geometry::get_turns < - false, false, + detail::touches::should_reverse::value, + detail::touches::should_reverse::value, detail::overlay::assign_null_policy >(geometry1, geometry2, turns, policy);