Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#8026 closed Bugs (fixed)

Documentation for point concept is missing a typedef

Reported by: Martin Gernhard <martin.gernhard@…> 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)

polygon_point_docu_fix.patch (1.1 KB ) - added by Martin Gernhard <martin.gernhard@…> 10 years ago.

Download all attachments as: .zip

Change History (9)

by Martin Gernhard <martin.gernhard@…>, 10 years ago

comment:1 by Andrii Sydorchuk, 10 years ago

Owner: changed from Lucanus Simonson to Andrii Sydorchuk

in reply to:  1 comment:2 by Andrii Sydorchuk, 10 years ago

Hi Martin,

Thanks for the report. I've updated documentation on trunk (development) branch. It will become public with Boost 1.54 release.

comment:3 by Andrii Sydorchuk, 10 years ago

Milestone: To Be DeterminedBoost 1.54.0

comment:4 by Andrii Sydorchuk, 10 years ago

Resolution: fixed
Status: newclosed

comment:5 by Andrii Sydorchuk, 10 years ago

(In [83918]) [Polygon] Merging from trunk for the upcoming release: 1) Updated Voronoi documentation. 2) Fixed #8026, #8197, #8257.

comment:6 by anonymous, 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:7 by Andrii Sydorchuk, 8 years ago

Thank you for your report. I updated documentation in the master branch.

comment:8 by Andrii Sydorchuk, 8 years ago

Milestone: Boost 1.54.0Boost 1.56.0
Note: See TracTickets for help on using tickets.