Subject: [Boost-bugs] [Boost C++ Libraries] #2658: Problems in read_dimacs_max_flow
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-14 13:57:50
#2658: Problems in read_dimacs_max_flow
------------------------------------+---------------------------------------
Reporter: julien.schleich_at_[hidden] | Owner:
Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: None
Version: Boost 1.37.0 | Severity: Problem
Keywords: graph dimacs |
------------------------------------+---------------------------------------
There two problems I noticed using read_dimacs_max_flow :
1. First, at the end of the parsing loop, a conditional test is done :
if ( feof (stdin) == 0 ) /* reading error */
{ err_no=EN21; goto error; }
As the loop is dealing with "std::istream& in=std::cin" I assume it's a
mistake.
2. "capacity" and "reverse_edge" are not referenced
int read_dimacs_max_flow(Graph& g,
CapacityMap capacity,
ReverseEdgeMap reverse_edge,
typename graph_traits<Graph>::vertex_descriptor&
src,
typename graph_traits<Graph>::vertex_descriptor&
sink,
std::istream& in=std::cin)
3. Even with documentation examples I have this message :
malloc: *** error for object 0x1000f4: Non-aligned pointer being freed
Regards
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2658> 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:49:59 UTC