$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] a vector of subgraphs
From: James C. Sutherland (James.Sutherland_at_[hidden])
Date: 2009-04-07 20:04:36
On Apr 7, 2009, at 4:59 PM, fabricio wrote:
>
> typedef subgraph< adjacency_list > Graph;
>
> Graph G;
>
> what I want is to create a:
>
> vector< Graph& > subG;
>
>
> but the usage of & here is illegal.
>
Why not use pointers?
vector<Graph*> subG;
or
vector< boost::shared_ptr<Graph> > subG;