|
Boost Users : |
Subject: Re: [Boost-users] [BGL] VertexProperties as a Nested Type
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-05-19 17:39:07
On Wed, 19 May 2010, Hossein Haeri wrote:
> Dear Jeremiah,
>
> Let me first say that I updated my GCC to 4.4.0.
>
>> It looks like there are typedefs
>> graph_type::vertex_property_type and
>> graph_type::edge_property_type in adjacency_list.
>
> I guess vertex_property_type is deemed to be what I'm looking for. But,
> it apparently is not implemented in the way it should have been. I say
> this because when I compile the following funny code:
>
> typedef adjacency_list<vecS, vecS, directedS, string> graph_type;
> graph_type::vertex_property_type temp1, temp2;
> string str1(temp1);
In that case, try:
property<graph_type, vertex_bundle_t>::type
as your vertex property type (and the same for edge_bundle_t).
-- 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