#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)
by , 10 years ago
| Attachment: | polygon_point_docu_fix.patch added | 
|---|
follow-up: 2 comment:1 by , 10 years ago
| Owner: | changed from to | 
|---|
comment:2 by , 10 years ago
comment:3 by , 10 years ago
| Milestone: | To Be Determined → Boost 1.54.0 | 
|---|
comment:4 by , 10 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
comment:5 by , 10 years ago
comment:6 by , 8 years ago
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:8 by , 8 years ago
| 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.