mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-09 11:12:21 +00:00
Merged updates for (small) changes for views/ranges/iterators (r71711 through r71812)
[SVN r71815]
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/register/point.hpp>
|
||||
#include <boost/geometry/geometries/register/ring.hpp>
|
||||
|
||||
|
||||
struct my_point
|
||||
@@ -48,11 +49,7 @@ struct my_polygon
|
||||
|
||||
// We can conveniently use macro's to register point and ring
|
||||
BOOST_GEOMETRY_REGISTER_POINT_2D(my_point, double, cs::cartesian, x, y)
|
||||
|
||||
// Register my_ring as a ring
|
||||
namespace boost { namespace geometry { namespace traits {
|
||||
template <> struct tag<my_ring> { typedef ring_tag type; };
|
||||
}}}
|
||||
BOOST_GEOMETRY_REGISTER_RING(my_ring)
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +73,6 @@ template<> struct interior_mutable_type<my_polygon>
|
||||
typedef boost::array<my_ring, 2>& type;
|
||||
};
|
||||
|
||||
|
||||
template<> struct exterior_ring<my_polygon>
|
||||
{
|
||||
static my_ring& get(my_polygon& p)
|
||||
|
||||
Reference in New Issue
Block a user