Modify

Opened 4 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: asydorchuk
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@…> 4 years ago.

Download all attachments as: .zip

Change History (9)

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

comment:1 follow-up: Changed 4 years ago by asydorchuk

  • Owner changed from ljsimons to asydorchuk

comment:2 in reply to: ↑ 1 Changed 4 years ago by asydorchuk

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 asydorchuk

  • Milestone changed from To Be Determined to Boost 1.54.0

comment:4 Changed 4 years ago by asydorchuk

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 4 years ago by asydorchuk

(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 asydorchuk

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

comment:8 Changed 3 years ago by asydorchuk

  • Milestone changed from Boost 1.54.0 to Boost 1.56.0

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain asydorchuk.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.