mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-08 23:02:09 +00:00
Merged updates for (small) changes for views/ranges/iterators (r71711 through r71812)
[SVN r71815]
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/register/point.hpp>
|
||||
#include <boost/geometry/geometries/register/ring.hpp>
|
||||
#include <boost/geometry/util/add_const_if_c.hpp>
|
||||
|
||||
// Sample point, having x/y
|
||||
@@ -215,9 +216,7 @@ template<> struct resize<my_polygon>
|
||||
// 4) register with Boost.Geometry
|
||||
BOOST_GEOMETRY_REGISTER_POINT_2D(my_point, double, cs::cartesian, x, y)
|
||||
|
||||
namespace boost { namespace geometry { namespace traits {
|
||||
template <> struct tag<my_polygon> { typedef ring_tag type; };
|
||||
}}}
|
||||
BOOST_GEOMETRY_REGISTER_RING(my_polygon)
|
||||
|
||||
|
||||
// end adaption
|
||||
@@ -238,7 +237,7 @@ void walk_using_iterator(my_polygon const& polygon)
|
||||
|
||||
void walk_using_range(my_polygon const& polygon)
|
||||
{
|
||||
for (boost::range_iterator<const my_polygon>::type it
|
||||
for (boost::range_iterator<my_polygon const>::type it
|
||||
= boost::begin(polygon);
|
||||
it != boost::end(polygon);
|
||||
++it)
|
||||
|
||||
Reference in New Issue
Block a user