Boost Users :
From: Aaron Windsor (aaron.windsor_at_[hidden])
Date: 2005-09-09 16:13:22
On 9/9/05, Tony Cook <tony__cook_at_[hidden]> wrote:
> Can anyone tell me if I've exposed a bug in the Boost Graph Library or if
> the following behaviour is expected and I need to code the solution in a
> different way, and if so HOW?
> In summary the boost::copy_graph algorithm fails to compile when defining
> the graph using std::vector for the edge container and std::list for the
> vertex container (Visual Studio 7.1, Boost 1.32.0). Other graph type
> definitions work. (NB I can't use the "working" graph types in my main
> application as VC 7.1 bombs with an Internal Compiler Error. I'm forced to
> use a vecS,lists graph just to work round the ICE problem!!).
See #5 on the BGL FAQ page (http://www.boost.org/libs/graph/doc/faq.html.)
Basically, copy_graph needs the graph to have a property map that maps
vertices to integers. Once you fix your code as described in #5, it
and run as you expect.
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