Boost logo

Boost Users :

From: Jamie Wilkinson (jaq_at_[hidden])
Date: 2005-01-12 04:15:45


The doc at
http://boost-consulting.com/boost/libs/grpah/doc/fruchterman_reingold.html
suggests that there is a 4 argument version of the function, taking only the
graph, a position map, width and height; but attempts to compile such a
function against the headers from the latest CVS results in a compile error:

error: no matching function for call to `
   fruchterman_reingold_force_directed_layout(Umbrella::Document&,
   Umbrella::View::load_from_document()::PositionMap&, double&, double&)'

Removing the typenames Param, Tag, and Rest from lines 371-372 of the header
allows the compile to continue.

Index: boost/graph/fruchterman_reingold.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/graph/fruchterman_reingold.hpp,v
retrieving revision 1.5
diff -u -c -r1.5 fruchterman_reingold.hpp
cvs diff: conflicting specifications of output style
*** boost/graph/fruchterman_reingold.hpp 29 Dec 2004 16:53:05 -0000 1.5
--- boost/graph/fruchterman_reingold.hpp 12 Jan 2005 09:18:16 -0000
***************
*** 368,375 ****
       params);
  }

! template<typename Graph, typename PositionMap, typename Dim, typename Param,
! typename Tag, typename Rest>
  void
  fruchterman_reingold_force_directed_layout(const Graph& g,
                                           PositionMap position,
--- 368,374 ----
       params);
  }

! template<typename Graph, typename PositionMap, typename Dim>
  void
  fruchterman_reingold_force_directed_layout(const Graph& g,
                                           PositionMap position,


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net