Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61167 - sandbox/geometry/libs/geometry/example
From: mateusz_at_[hidden]
Date: 2010-04-09 16:30:58


Author: mloskot
Date: 2010-04-09 16:30:57 EDT (Fri, 09 Apr 2010)
New Revision: 61167
URL: http://svn.boost.org/trac/boost/changeset/61167

Log:
Fixed invalid initialization of non-const reference of type no_interrupt_policy passed to get_turns() in 05_b_overlay_linestring_polygon_example.cpp. Problem reported by Scott K Warren on the list. This initialization probably sneaked unnoticed because Visual C++ <=8.0 allows this buggy behaviour, however it has been fixed in Visual C++ 10.0 version.
Text files modified:
   sandbox/geometry/libs/geometry/example/05_b_overlay_linestring_polygon_example.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/geometry/libs/geometry/example/05_b_overlay_linestring_polygon_example.cpp
==============================================================================
--- sandbox/geometry/libs/geometry/example/05_b_overlay_linestring_polygon_example.cpp (original)
+++ sandbox/geometry/libs/geometry/example/05_b_overlay_linestring_polygon_example.cpp 2010-04-09 16:30:57 EDT (Fri, 09 Apr 2010)
@@ -54,8 +54,8 @@
     // Calculate intersection points (turn points)
     typedef bg::detail::overlay::turn_info<bg::point_2d> turn_info;
     std::vector<turn_info> turns;
- bg::get_turns<bg::detail::overlay::assign_null_policy>(ls, p,
- turns, bg::detail::get_turns::no_interrupt_policy());
+ bg::detail::get_turns::no_interrupt_policy policy;
+ bg::get_turns<bg::detail::overlay::assign_null_policy>(ls, p, turns, policy);
 
     std::cout << "Intersection of linestring/polygon" << std::endl;
     BOOST_FOREACH(turn_info const& turn, turns)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk