#8026 closed Bugs (fixed)
Documentation for point concept is missing a typedef
Reported by: | Owned by: | Andrii Sydorchuk | |
---|---|---|---|
Milestone: | Boost 1.56.0 | Component: | polygon |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The example code for custom point types is missing the "coordinate_type" typedef in the "point_mutable_traits" struct and does not compile (GCC 4.6.3):
polygontest.cpp: In function 'void test_point() [with Point = CPoint]': polygontest.cpp:113:24: instantiated from here polygontest.cpp:21:42: error: no matching function for call to 'construct(int&, int&)'
The unit test polygon_point_test.cpp on the other hand does have the typedef.
Attachments (1)
Change History (9)
Changed 5 years ago by
Attachment: | polygon_point_docu_fix.patch added |
---|
comment:1 follow-up: 2 Changed 5 years ago by
Owner: | changed from Lucanus Simonson to Andrii Sydorchuk |
---|
comment:2 Changed 5 years ago by
comment:3 Changed 5 years ago by
Milestone: | To Be Determined → Boost 1.54.0 |
---|
comment:4 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 5 years ago by
comment:6 Changed 4 years ago by
This still seems to be missing here: http://www.boost.org/doc/libs/1_55_0/libs/polygon/doc/gtl_polygon_concept.htm
here: http://www.boost.org/doc/libs/1_55_0/libs/polygon/doc/gtl_custom_polygon.htm
and here: http://www.boost.org/doc/libs/1_55_0/libs/polygon/doc/gtl_custom_polygon_set.htm
With the unfortunate effect of the examples not working, and first time users getting a rather rough introduction to debugging templates...
comment:7 Changed 4 years ago by
Thank you for your report. I updated documentation in the master branch.
comment:8 Changed 4 years ago by
Milestone: | Boost 1.54.0 → Boost 1.56.0 |
---|
Hi Martin,
Thanks for the report. I've updated documentation on trunk (development) branch. It will become public with Boost 1.54 release.