Boost logo

Boost :

From: Jan van der Veen (j.van-der-veen_at_[hidden])
Date: 2000-10-04 09:26:55


While converting my program from ggcl to bgl I ran into the following
problem:

#include <boost/graph/adjacency_list.hpp>

using namespace boost;

typedef adjacency_list<listS, listS, undirectedS> TGraph;
typedef graph_traits<TGraph>::vertex_descriptor TVertex;

int main(int, char**)
{
    TGraph G(1);
    TVertex u = *vertices(G).first;

    degree(u, G);

    return 0;
}

The above program does not compile using g++ 2.95.2.

[jan_at_moc tmp]$ g++ tt.cc -o tt
/usr/local/include/boost/graph/detail/adjacency_list.hpp: In function
`size_t
boost::degree<boost::detail::adjacency_list_genera
tor<boost::adjacency_list<boost::listS,boost::list
S,boost::undirectedS,boost::no_property,boost::no_
property,boost::no_property>,boost::listS,boost::l
istS,boost::undirectedS,boost::no_property,boost::
no_property,boost::no_property>::config>(void
*, const
boost::undirected_graph_helper<boost::detail::adja
cency_list_generator<boost::adjacency_list<boost::
listS,boost::listS,boost::undirectedS,boost::no_pr
operty,boost::no_property,boost::no_property>,boos
t::listS,boost::listS,boost::undirectedS,boost::no
_property,boost::no_property,boost::no_property>::config>
&)':
tt.cc:13: instantiated from here
/usr/local/include/boost/graph/detail/adjacency_list.hpp:803: no
matching function for call to `out_degree (void *&, const
boost::undirected_graph_helper<boost::detail::adja
cency_list_generator<boost::adjacency_list<boost::
listS,boost::listS,boost::undirectedS,boost::no_pr
operty,boost::no_property,boost::no_property>,boos
t::listS,boost::listS,boost::undirectedS,boost::no
_property,boost::no_property,boost::no_property>::config>
&)'


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk