Opened 5 years ago

Closed 5 years ago

#13436 closed Bugs (fixed)

Incorrectness in boost::geometry::model::polygon documentation

Reported by: yeghiadolbakian@… Owned by: awulkiew
Milestone: Boost 1.67.0 Component: geometry
Version: Boost 1.66.0 Severity: Cosmetic
Keywords: std::list geometry polygon Cc:

Description

The PointList template argument description in polygon model page http://www.boost.org/doc/libs/1_66_0/libs/geometry/doc/html/geometry/reference/models/model_polygon.html says that std::list container can also be used to hold vertices. In reality - it is not possible, because of Ring Concept limitations.

So, to reproduce the error, simply add std::list to the template argument list in the sample on the same page. Actually the compilation will error out even for the initialization of polygon with points with append(). Even if polygon is populated with vertices in some other ways (simply calling push_back()) the sample compilation will fail on area() call.

Change History (2)

comment:1 by awulkiew, 5 years ago

Component: Documentationgeometry
Keywords: geometry added
Owner: changed from Matias Capeletto to awulkiew

comment:2 by awulkiew, 5 years ago

Milestone: To Be DeterminedBoost 1.67.0
Resolution: fixed
Status: newclosed

Thanks!

I removed std::list from example container types.

Note: See TracTickets for help on using tickets.