Opened 11 years ago

Closed 11 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:

Description

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.

Change History (3)

comment:1 by Barend Gehrels, 11 years ago

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 by Mateusz Loskot, 11 years ago

Is this new report related #5954 ?

comment:3 by Barend Gehrels, 11 years ago

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.

Note: See TracTickets for help on using tickets.