Boost logo

Boost Users :

Subject: [Boost-users] BGL: get(p, g, x) and get(get(p, g), x)
From: Shaun Jackman (sjackman_at_[hidden])
Date: 2012-05-11 16:46:09


Hi,

I’ve implemented a graph that’s quite similar to adjacency_list.
get(get(vertex_index, g), u) works as expected, but
get(vertex_index, g, u) does not work.

Is their a default implementation in boost/graph somewhere that translates the latter call to the first, or does my graph have to implement the following function?

template <typename Tag, typename Key>
typename property_map_value<MyGraph, Tag>::type
get(Tag tag, const MyGraph& g, Key key)
{
        return get(get(tag, g), key);
}

When I include this implementation, the get(tag, g, u) call works as expected.

Cheers,
Shaun


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