Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::transitive_closure() and “error: no matching function for call to ‘vertices(const std::vector<std::vector<long unsigned int>…”
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-02-04 00:14:20


On Fri, 3 Feb 2012, Jacob Lidman wrote:

> Hi,
>
> I posted a question regarding an error I've received with
> boost::transitive_closure() to stackoverflow
> (http://stackoverflow.com/questions/8976812/boosttransitive-closure-and-error-no-matching-function-for-call-to-vertic).
> Since I didn't receive any comments I'm now trying this mailing list.
>
> In short I'm getting an error about a missing function when I'm trying to
> compute the transitive closure.
> The code in question is ...
>
> -------------
> 1: #include <boost/graph/vector_as_graph.hpp>
> 2: #include <boost/graph/adjacency_list.hpp>
> 3: #include <boost/graph/transitive_closure.hpp>
>
> 10: boost::adjacency_list<boost::setS, boost::vecS, boost::bidirectionalS,
> boost::property<boost::vertex_name_t, ContainerStruct *> > gTC, g =
> create_CSgraph();
> 11: boost::transitive_closure(g, gTC);
> -------------
>
> ... where "ContainerStruct" is a structure for holding various data and
> create_CSgraph() is a function for initializing a graph object.
> The error I'm getting is...

Please see if r76868 in the trunk fixes this problem; you can just
download
https://svn.boost.org/svn/boost/trunk/boost/graph/vector_as_graph.hpp and
put it into your tree.

-- Jeremiah Willcock


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