Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2006-02-27 11:09:49


On Feb 14, 2006, at 9:08 AM, Dmitry Bufistov wrote:
> if change graph representation to following
> typedef boost::adjacency_list<boost::listS, boost::listS,
> directedS, basic_vertex_properties<> > adj_list1_t;
>
[snip]
> What is wrong here?
> Any help would be greatly appreciated,

Your code is correct; it looks like there is a bug in the Boost Graph
Library. While I'm working on a fix for 1.34.0, you can force a case of
the member pointer type to like this:

      boost::property_map<adj_list1_t, my_ver_p::node_name_type
my_ver_p::* >::type
node_name_map1(boost::get((my_ver_p::node_name_type
my_ver_p::*)&my_ver_p::m_node_name, c));

        Doug


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