Opened 5 years ago
#13469 new Support Requests
Getting lot of warnings for simple code which is using boost::Intersection
Reported by: | Owned by: | Lucanus Simonson | |
---|---|---|---|
Milestone: | To Be Determined | Component: | polygon |
Version: | Boost 1.61.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The simple code below is generating a lot of warnings in boost 1_61_0 version.
#include <boost/geometry/core/cs.hpp> #include <boost/geometry/geometries/register/point.hpp> #include <boost/geometry/geometries/polygon.hpp> #include <boost/geometry/geometries/register/ring.hpp> #include <boost/geometry.hpp> struct Vertex2D { double X; double Y; }; BOOST_GEOMETRY_REGISTER_POINT_2D(Vertex2D, double, cs::cartesian, X, Y); typedef std::vector<Vertex2D> Ring; BOOST_GEOMETRY_REGISTER_RING(Ring); typedef boost::geometry::model::polygon<Vertex2D> Polygon; int main() { Polygon p1; Polygon p2; std::vector<Polygon> intersections; boost::geometry::intersection(p1, p2, intersections); return 0; }
Note:
See TracTickets
for help on using tickets.