|
Boost Users : |
Subject: Re: [Boost-users] a vector of subgraphs
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2009-04-08 13:55:26
fabricio wrote:
> Hi, thanks for the answers, but using Graph* does not work, it is an
> invalid cast from Graph& to Graph*
> the Visual C++ gives me a C2440 error (type cast error) when I try to
> make
> Graph* g1 = g.subgraph();
Of course you should write
Graph* g1 = &g.subgraph();
Regards,
Thomas
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