[Boost-bugs] [Boost C++ Libraries] #11542: Using geometry buffer with integer coordinate type

Subject: [Boost-bugs] [Boost C++ Libraries] #11542: Using geometry buffer with integer coordinate type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-17 16:21:01


#11542: Using geometry buffer with integer coordinate type
------------------------------+---------------------------
 Reporter: jim.whittaker@… | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: geometry buffer |
------------------------------+---------------------------
 Applied the following patch to allow use of buffer when using an integer
 coordinate type. Found in 1_58, also present in 1_59.

 diff -Naur
 boost_1_58_0/boost/geometry/strategies/cartesian/buffer_point_square.hpp
 boost_1_58_0.new/boost/geometry/strategies/cartesian/buffer_point_square.hpp
 ---
 boost_1_58_0/boost/geometry/strategies/cartesian/buffer_point_square.hpp
 2015-03-30 17:25:04.000000000 +0100
 +++
 boost_1_58_0.new/boost/geometry/strategies/cartesian/buffer_point_square.hpp
 2015-07-01 15:42:33.174193134 +0100
 @@ -71,10 +71,10 @@
                  DistanceType const& distance,
                  OutputRange& output_range) const
      {
 - add_point(point, distance, -1.0, -1.0, output_range);
 - add_point(point, distance, -1.0, +1.0, output_range);
 - add_point(point, distance, +1.0, +1.0, output_range);
 - add_point(point, distance, +1.0, -1.0, output_range);
 + add_point(point, distance, -1, -1, output_range);
 + add_point(point, distance, -1, +1, output_range);
 + add_point(point, distance, +1, +1, output_range);
 + add_point(point, distance, +1, -1, output_range);

          // Close it:
          output_range.push_back(output_range.front());

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11542>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC