[graph] vertex property Graph type cyclic definition problem. forward declaration not possible.

Hi,
i would like to use the bundled properties feature of the boost graph
library to specify the vertex properties of my graph. The problem is
that i would like to have some graph type dependent descriptor type map
defined within these vertex properties.
Here is the example:
// begin code
#include <iostream>
#include

On Wed, 12 Oct 2011, Christoph wrote:
Hi,
i would like to use the bundled properties feature of the boost graph library to specify the vertex properties of my graph. The problem is that i would like to have some graph type dependent descriptor type map defined within these vertex properties.
(snip)
I do not want to use (void*) and std::reinterpret_cast to work around this problem. I hope that you can help me with a technique not using casts.
I assume that there may be a possibility to first declare the graph type without the vertex_properties struct and then 'adding' the vertex_propterties struct after defining the graph.
You can use the adjacency_list_traits class for that; see URL:http://www.boost.org/doc/libs/1_47_0/libs/graph/doc/adjacency_list_trait... for details. -- Jeremiah Willcock

On Wed, 2011-10-12 at 14:56 -0400, Jeremiah Willcock wrote:
On Wed, 12 Oct 2011, Christoph wrote:
Hi,
i would like to use the bundled properties feature of the boost graph library to specify the vertex properties of my graph. The problem is that i would like to have some graph type dependent descriptor type map defined within these vertex properties. [...] You can use the adjacency_list_traits class for that; see URL:http://www.boost.org/doc/libs/1_47_0/libs/graph/doc/adjacency_list_trait... for details.
This is exactly the answer to my problem. Thank you for your assistance. best regards Christoph
participants (2)
-
Christoph
-
Jeremiah Willcock