Opened 6 years ago

Closed 6 years ago

#5730 closed Bugs (fixed)

strategy selection error in the distance function

Reported by: Christian Marty <christian.marty@…> Owned by: Barend Gehrels
Milestone: Boost 1.48.0 Component: geometry
Version: Boost 1.47.0 Severity: Problem
Keywords: geometry distance strategy Cc:


file : \boost\geometry\algorithms\distance.hpp

line : 134

before (bug ?) : return_type const ds = ps_strategy.apply(point, *prev, *it);

after (patched) : return_type const ds = eps_strategy.apply(point, *prev, *it);

from the line 125, 128 and 139 eps_strategy seems the more appropriate.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by Barend Gehrels

Milestone: To Be DeterminedBoost 1.48.0

There is indeed something wrong here. But it is not as simple as changing this line only. Will look at it soon.

comment:2 Changed 6 years ago by Mateusz Loskot

Is this new report related #5954 ?

comment:3 Changed 6 years ago by Barend Gehrels

Resolution: fixed
Status: newclosed

This was indeed a problem. Actually it was more severe than I first thought. A patch was supplied recently and is applied now. The additional issue was that after that patch the unit test did not run anymore, and that is fixed as well. Sorry that this was delayed.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Barend Gehrels.
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.