Boost logo

Boost Users :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2005-07-06 22:37:58


On Jul 4, 2005, at 4:56 PM, sr kumar wrote:

> Hi,
> My application needs to have multiple graphs overlayed
> on the same set of data.
>
> Looks like used bundled properties would be very attractive.
>
> Since the data-set is likely to be large and the graphs will have
> to coexist, I'd like to build graphs of pointers to the base data.
>
> However, I am having trouble figuring out how to store pointers
> to the data structures within an adjacency_list.

You might have better luck if you place the pointers into a class, e.g.,

struct VertexData {
   Base* ptr;
};

Then pass VertexData as the 4th template argument to adjacency_list<>.

        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