Boost C++ Libraries: Ticket #11542: Using geometry buffer with integer coordinate type https://svn.boost.org/trac10/ticket/11542 <p> Applied the following patch to allow use of buffer when using an integer coordinate type. Found in 1_58, also present in 1_59. </p> <p> 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 @@ </p> <blockquote> <p> <a class="missing wiki">DistanceType</a> const&amp; distance, <a class="missing wiki">OutputRange</a>&amp; output_range) const </p> </blockquote> <blockquote> <p> { </p> </blockquote> <ul><li> add_point(point, distance, -1.0, -1.0, output_range); </li><li> add_point(point, distance, -1.0, +1.0, output_range); </li><li> add_point(point, distance, +1.0, +1.0, output_range); </li><li> add_point(point, distance, +1.0, -1.0, output_range); </li></ul><p> + 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); </p> <blockquote> <p> <em> Close it: output_range.push_back(output_range.front()); </em></p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11542 Trac 1.4.3