[Boost-bugs] [Boost C++ Libraries] #5737: length-1 grid graph gives wrong previous vertex

Subject: [Boost-bugs] [Boost C++ Libraries] #5737: length-1 grid graph gives wrong previous vertex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-27 10:02:43


#5737: length-1 grid graph gives wrong previous vertex
-----------------------------------------------------+----------------------
 Reporter: Lau Yang Hao <lauyh@…> | Owner: asutton
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 The previous function miscalculates the vertex index along a dimension
 where the grid graph's length is one. The computed vertex index is one
 when it should be zero.
 The offending code is "vertex[dimension_index] = ...
 length(dimension_index) - (distance % length(dimension_index))."

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5737>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC