[Boost-bugs] [Boost C++ Libraries] #13436: Incorrectness in boost::geometry::model::polygon documentation

Subject: [Boost-bugs] [Boost C++ Libraries] #13436: Incorrectness in boost::geometry::model::polygon documentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-02 18:37:00


#13436: Incorrectness in boost::geometry::model::polygon documentation
-------------------------------+------------------------------
 Reporter: yeghiadolbakian@… | Owner: Matias Capeletto
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
  Version: Boost 1.66.0 | Severity: Cosmetic
 Keywords: std::list polygon |
-------------------------------+------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13436>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-02-02 18:42:16 UTC