Modify

Opened 5 years ago

Closed 4 years ago

Last modified 3 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@…> 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by Martin Gernhard <martin.gernhard@…>

comment:1 Changed 4 years ago by Andrii Sydorchuk

Owner: changed from Lucanus Simonson to Andrii Sydorchuk

comment:2 in reply to:  1 Changed 4 years ago by Andrii Sydorchuk

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 Changed 4 years ago by Andrii Sydorchuk

Milestone: To Be DeterminedBoost 1.54.0

comment:4 Changed 4 years ago by Andrii Sydorchuk

Resolution: fixed
Status: newclosed

comment:5 Changed 4 years ago by Andrii Sydorchuk

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

comment:6 Changed 3 years ago by anonymous

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 3 years ago by Andrii Sydorchuk

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

comment:8 Changed 3 years ago by Andrii Sydorchuk

Milestone: Boost 1.54.0Boost 1.56.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Andrii Sydorchuk.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.