Boost logo

Boost Users :

Subject: [Boost-users] Strange problem with boost/graph/subgraph.hpp
From: Paolo Bolzoni (paolo.bolzoni.brown_at_[hidden])
Date: 2014-02-27 05:56:57


Dear list,
I cannot compile a simple example using the subgraph implementation.
I enclosed the code in the bottom of this email. It is quite short,
but it is the whole code. It does not compile with errors from
inside boost/graph/detail/adjacency_list.hpp about the impossiblity
of making a reference to void.

I read the subgraph documentation but I cannot understand why it
does not work.

Can anyone enlighten me?

Your faithfully,
Paolo

The code:

------------------ >8

#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/subgraph.hpp>

typedef boost::adjacency_list
<
    boost::listS,
    boost::listS,
    boost::undirectedS
> main_graph;

typedef boost::subgraph <main_graph> sub_graph;

typedef boost::graph_traits<sub_graph>::vertex_descriptor Bvertex;

8< ------------------


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